This is a custom Apache parameter. It seems that by default on Mac computers (and possibly on most installations) Apache is configured to not follow symbolic links. I assume (as others mention above) that this is for security purposes.
But sometimes it can be very convenient to include the following symbolic links, especially when developing certain types of applications. What you need to do is 1) change the configuration of Apache to allow the following symbolic links, and then 2) restart Apache.
The configuration step is as follows:
a) cd / etc / apache2 (here Apache's default configuration files are on Mac)
b) here you will see a couple of directories. One of them is called by users.
c) cd users
d) ls should open the .conf file with your login name (login.conf). I am "marvo", so mine has the name "marvo.conf"
e) Edit this file (I use vi) - but you have to do it with sudo:
sudo vi marvo.conf
f) You will see something like
<Directory "/Users/marvo/Sites/"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
g) Add the “FollowSymLinks” option so that the second line of this .conf file looks like this:
Options Indexes MultiViews FollowSymLinks
(You can find other configuration parameters on the network. I found this page: http://httpd.apache.org/docs/2.0/mod/core.html#directory )
h) Save the file.
Now you need to restart Apache so that it changes the configuration. Having caught a bit, I found that this is easiest to do from the command line with the following command:
sudo /usr/sbin/apachectl restart
(Found that http://mcapewell.wordpress.com/2006/09/22/restart-apache-in-mac-os-x/ )
Now that the symbolic link should work fine on the pages of your sites.
Marvo Nov 23 '10 at 23:35 2010-11-23 23:35
source share