httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Bell <d...@plainblack.com>
Subject Re: [users@httpd] Permissions problem with accessing a file via a symbolic link - (Mac OS X 10.5.7, Apache 2.2.11)
Date Mon, 13 Jul 2009 18:41:15 GMT
On Jul 13, 2009, at 1:13 PM, Scott Ford wrote:

> I am running Mac OS X 10.5.7 with Apache 2.2.11 installed.  I have an
> audio application that creates an html log file of tracks that are
> playing.  I am trying to use a symbolic link to access the html file
> so I can post it on my site over my LAN.  The file resides in a  
> directory inside
> of my documents folder...
> /Users/[username]/Documents/MegaSeg User Data/Logs
> I have verified that the permissions to all of the parent directories
> have at least execute privileges for others.  The html log file I am
> trying to link to has the following privileges...
> -rw-r--r--@  1 [username]  staff    625 Jul 10 17:17 NowPlaying.html
> I used the following command to setup my symbolic link...
> ln -s /Users/[username]/Documents/MegaSeg\ User\ Data/Logs/
> NowPlaying.html nowplaying.html
> That seemed to work fine, because when I do an ls -al in my website's
> folder I see the link.  I have a basic index.html, with a link to
> nowplaying.html, but when I click on the link I get a 403 Forbidden
> error.
>
What does the error log say exactly? http://wiki.apache.org/httpd/DistrosDefaultLayout#head-71b68a0694807d2b3b5d02e46b7a11f01fdd4836

  <- find your error log here
> In reading the Apache documentation, I found that I may need to have  
> FollowSymLinks somewhere in my configuration, but I am not sure from  
> the Apache documentation where that should go.  I assume it would  
> either be in the form of a .htaccess file, or somewhere in the  
> httpd.conf file.  It should be noted that the DocumentRoot directory  
> I am using is configured as an Alias in my httpd.conf.  I am sure  
> that this is configured correctly as I can access it just fine over  
> my LAN.
>
It should go in a <Directory /your/document/root> block in the  
<VirtualHost *:80> block. If there is no <VirtualHost> block, then  
somewhere after the DocumentRoot declaration.
It should be Options +FollowSymLinks (always use +/- before the option)

Doug Bell -- Senior Developer, Plain Black Corp.
[ http://plainblack.com ]
all that groks is


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message