[plug] Apache & symlinks

Sol sol at autonomon.net
Tue Aug 19 15:39:54 WST 2003


Hi all,

I just hit a snag whilst trying to symlink files from outside my Apache 
server root. At first I thought it was a PHP problem cos I did something 
like this:
ln -s /home/sol/intranet/index.php index.php  # whilst in my web server root

The link was created but when I tried to access it I was told that I was 
forbidden. But in order to work out whether it was a PHP problem or more 
generic Apache problem, I did this:
ln -s /home/sol/intranet/index.html index.html  # whilst in my web 
server root with static html content

Same problem. So I checked httpd.conf and came across this little bit 
which I *think* is responsible:

<Directory />
            AuthUserFile /etc/httpd/passwd
            AuthGroupFile /etc/httpd/group

            Options    -FollowSymlinks    +Multiviews
            AllowOverride None

</Directory>

In order to get symlinked files to work under Apache, do I need to alter 
this section? If so how?
Or is it something else?

TIA; sol

-- 
==============================
Sol Hanna
solATautonomonDOTnet






More information about the plug mailing list