pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/42107: www/apache22 : Add support for mod_mysuexec in pkgsrc

>Number:         42107
>Category:       pkg
>Synopsis:       www/apache22 : Add support for mod_mysuexec in pkgsrc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 21 20:05:00 +0000 2009
>Originator:     Damian Lubosch
>Release:        NetBSD 5.0
NetBSD 5.0 NetBSD 5.0 (XEN3_DOM0) #0: Sun Apr 26 06:40:06 UTC 

It is possible to have Apache-suexec functionality in a virtual-domains 
environment within the Apache installation. e.g. the isp hosts webseite for 
domain in /home/ the suexec ensures that is in /home and its docroot is in www/
First, you have to compile apache with mk.conf:


The new thing would be:

Second you need mod_mysuexec.c and mod_suexec.h from 

Therefore, it would be nice to have the last quoted line in 

APACHE_SUEXEC_CONFIGURE_ARGS+=                                          \
        --with-suexec-bin=${PREFIX}/sbin/suexec                         \
        --with-suexec-caller=${APACHE_USER}                             \
        --with-suexec-safepath='${APACHE_SUEXEC_PATH:Q}'                \
        --with-suexec-docroot=${APACHE_SUEXEC_DOCROOT:Q}                \
        --with-suexec-logfile=${APACHE_SUEXEC_LOGFILE:Q}                \

(I hope the syntax for the last line is correct to read the information from 
mk.conf, I just used www there, to make it work)

Without the suexec-configure-option (here for www) " --with-suexec-userdir=www 
", suexec denies access to /home/*/www 


I do not know if this is diff-ed correctly - I hope so.

pauli# diff -u                                       
---  2009-09-21 21:53:08.000000000 +0200
+++      2009-09-21 21:52:51.000000000 +0200
@@ -30,7 +30,8 @@
        --with-suexec-caller=${APACHE_USER}                             \
        --with-suexec-safepath='${APACHE_SUEXEC_PATH:Q}'                \
        --with-suexec-docroot=${APACHE_SUEXEC_DOCROOT:Q}                \
-       --with-suexec-logfile=${APACHE_SUEXEC_LOGFILE:Q}                
+       --with-suexec-logfile=${APACHE_SUEXEC_LOGFILE:Q}                \
+       --with-suexec-userdir=www
 APACHE_MODULES+=        suexec

Home | Main Index | Thread Index | Old Index