Re: Permissions problem with accessing a file via a symbolic link - (Mac OS X 10.5.7, Apache 2.2.11)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your reply.  Before I received a reply, I did some testing and added Options Indexes FollowSymLinks to my alias directive, and everything started working.

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)

I am curious though, I did not add a "+" before, yet it is still working. What is the benefit to adding that?



On Mon, Jul 13, 2009 at 11:41 AM, Doug Bell <doug@xxxxxxxxxxxxxx> wrote:
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@xxxxxxxxxxxxxxxx
 "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Scott Ford
Chief Technology Officer
Michael Smith Event Music
8427 Ridpath Drive
Los Angeles, CA 90046
(323) 848-7909 (office)
(323) 848-7287 (fax)
(213) 422-6665 (cell)
http://www.smitheventmusic.com

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux