Welcome to WebmasterWorld Guest from 54.242.193.41

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Odd symlink behavior on apache virtual host

clicking on a listed file that is a symlink returns a 404

     
4:38 pm on Jan 22, 2003 (gmt 0)

New User

10+ Year Member

joined:Jan 22, 2003
posts:2
votes: 0


with this in my httpd.conf

<VirtualHost xxxx.xxxx.net xxxx.xxxx.net>
ServerAdmin webmaster@xxx.net
DocumentRoot /...../www
ServerName xxxx.xxxx.net
ErrorLog /usr/local/etc/httpd/logs/VHOST/user_errors
TransferLog /usr/local/etc/httpd/logs/VHOST/user_access
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi
</VirtualHost>

I've browsed to a directory in which lives a symlinked file. I have indexes turned on, so i can see the file is actually there. clicking on the link for that file, however, returns for me a 404. The symlink is valid, as I can type it in an ssh shell and get the file just fine.

I've used symlinks with apache without a hitch in the past. Am I missing something this time?

4:40 pm on Jan 22, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 7, 2003
posts:1230
votes: 0


maybe the symlink is outside your webroot?
5:12 pm on Jan 22, 2003 (gmt 0)

New User

10+ Year Member

joined:Jan 22, 2003
posts:2
votes: 0


good call. that seems to have been the problem. strange, though, because i've linked in a directory from outside web root in the past and things worked just fine.

thanks.