| Matt Garman 2004-01-28, 3:34 am |
| I'm running Apache 1.3.27 under OpenBSD 3.3. DocumentRoot is set to
"/var/www/htdocs" and FollowSymLinks is enabled.
However, whenever I try to create a symbolic link to a directory below
the DocumentRoot, Apache returns a 404 Not Found, even with read
permissions set to everyone.
For example:
mkdir /blah
chmod 777 /blah
touch /blah/file1
touch /blah/file2
touch /blah/file3
chmod 666 /blah/file*
ln -s /blah /var/www/htdocs/blah
Now if I try to go to http://myserver/blah, I get a 404.
If I do the exact same thing, but put the blah directory under
/var/www/htdocs (instead of the root), and symlink to it (i.e. ln -s
/var/www/htdocs/blah /var/www/htdocs/test) it works as expected (i.e.
creates an index and shows the directory contents of test).
It appears that Apache won't follow a symlink outside of DocumentRoot,
regardless of permissions. Do I need to explicitly configure other
directories that Apache can serve?
Thanks,
Matt
--
Matt Garman
email at: http://raw-sewage.net/index.php?file=email
|