Apache Server configuration support - Apache suexec userdir problems

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Apache suexec userdir problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache suexec userdir problems
Hans

2004-01-19, 7:14 am

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com