I am having trouble getting my user's web directories to behave the FollowSymLinks option. I know I must be making a stupid mistake here but I have spent way too much time trying to track down the problem.

I'm using Apache 2.0.54 on Gentoo, and have taken the issue down a very basic config which illustrates the problem:

# cat /etc/apache2/httpd.conf
User apache
Group apache
Listen 80
PidFile "/var/run/apache2.pid"
LogLevel Debug
ErrorLog /var/log/apache2/test.log
LoadModule userdir_module modules/mod_userdir.so
LoadModule dir_module modules/mod_dir.so
DirectoryIndex index.html
<Directory /home/avarice/public_html>
        Options Indexes FollowSymLinks
</Directory>

# ls -l /home/avarice/public_html/
-rw-r--r--  1 avarice users   12 Jun 18  2001 index.html
lrwxrwxrwx 1 root root 31 Aug 4 15:22 richhorner -> /var/www/richhorner.com/htdocs/

# ls -ld /var/www/richhorner.com/htdocs/
drwxr-xr-x 13 avarice users 624 Aug 3 14:27 /var/www/richhorner.com/htdocs/


Now, when I visit http://myserver/~avarice I get the (unparsed) contents of index.html, as expected. If I remove the "Indexes" option from my config I no longer get the index.html file contents by default, again as expected (just to make sure that Options line was getting used).

However, when I try to access http://myserver/~avarice/richhorner I get an access denied error:

# cat /var/log/apache2/test.log
[Thu Aug 04 15:39:03 2005] [notice] caught SIGTERM, shutting down
[Thu Aug 04 15:39:04 2005] [notice] Apache/2.0.54 (Gentoo/Linux) configured -- resuming normal operations
[Thu Aug 04 15:39:04 2005] [info] Server built: Jul 27 2005 16:28:52
[Thu Aug 04 15:39:04 2005] [debug] prefork.c(956): AcceptMutex: sysvsem (default: sysvsem) [Thu Aug 04 15:39:07 2005] [error] [client 63.168.208.50] Symbolic link not allowed: /home/avarice/public_html/richhorner


I have tried and tried, but cannot get this to work. I successfully use FollowSymLinks and SymLinksIfOwnerMatch elsewhere in my full configuration, but when it comes to mod_userdir I'm having trouble.

Thanks,
-shawn

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to