Forum Moderators: phranque

Message Too Old, No Replies

403 Forbidden on soft link Apache 2.0

Apache 2.0 denies access to soft link

         

cherrick

8:41 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



Recently, I installed Linux Redhat Fedora Core 3 with Apache 2.0.52. Document root is /var/www/html. I created a soft link (ln -s) from another directory to /var/www/html/savane. Inside savane/ is a file, index.html which consists of <html> hello world </html>.

Bringing up FireFox, [localhost...] gives a 403 Forbidden. When I rm the soft link, create savane/ with mkdir and then use cp -rf to copy the contents of the other directory, Apache presents index.html just fine.

Does Apache not allow soft links? If so, why?

jdMorgan

8:57 pm on Feb 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cherrick,

Welcome to WebmasterWorld!

Check the file permissions on the link and on the target directory and file.

You may also need to enable SymLinks -- See Options in Apache core directives.

Jim