This is a discussion on Apache suexec userdir problems within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello everyone, I'm setting up a virtual host environment in the following way: Apache virtual web dirs: /home/sites/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello everyone,
I'm setting up a virtual host environment in the following way: Apache virtual web dirs: /home/sites/site1/web /home/sites/site2/web etc. Every virtual host has it's own users. These users have their own "web" dir: /home/sites/site1/users/user1/web/ /home/sites/site1/users/user2/web/ These subwebs are accessable using: http://www.domainname.com/~username I've got suexec working now for the /home/sites/site1/web dir, but the userdirs won't work. This is a part of my apache configuration: --- <IfModule mod_userdir.c> UserDir web </IfModule> <VirtualHost www.domain.com:80> User username Group groupname DocumentRoot "/home/sites/site1/web/" <Directory "/home/sites/site1/web"> Options Indexes FollowSymLinks MultiViews Includes +ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3 <Directory "/home/sites/site1/users/*/web"> Options Indexes FollowSymLinks MultiViews Includes +ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> --- my suexec -V output: -D DOC_ROOT="/home/sites" -D GID_MID=100 -D HTTPD_USER="www" -D LOG_EXEC="/usr/local/apache/logs/suexec_log" -D SAFE_PATH="/usr/local/bin:/usr/bin:/bin" -D UID_MID=100 -D USERDIR_SUFFIX="web" The suexec log is giving me the following information: command not in docroot (/home/sites/site1/users/user1/web/index.php) What am I doing wrong here? Can anyone help me? Thanks for your time :) Regards, Hans |