Apache suexec userdir problems

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/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2003
Hans
 
Posts: n/a
Default Apache suexec userdir problems

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0