Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That's a configurable Apache option. It appears that by default on Macs (and probably most installations) Apache is configured to not follow symbolic links. I'm guessing (as others mention above) that it's for security purposes.</p> <p>But it can be really convenient at times to enable following of symbolic links, particularly during development of certain kinds of apps. What you need to do is 1) change the Apache configuration to allow the following of symbolic links, and then 2) restart Apache.</p> <p>The configuration step is performed as follows:</p> <p>a) cd /etc/apache2 (this is where Apache's configuration files are by default on a Mac)</p> <p>b) you'll see a couple of directories here. One is called users</p> <p>c) cd users</p> <p>d) ls should reveal a .conf file with your login name (<em>login</em>.conf) I'm "marvo" so mine is named "marvo.conf"</p> <p>e) Edit this file (I use vi) -- but you have to do it using sudo:</p> <pre><code>sudo vi marvo.conf </code></pre> <p>f) You'll see something like</p> <pre><code>&lt;Directory "/Users/marvo/Sites/"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; </code></pre> <p>g) Add the "FollowSymLinks" option so that the second line of that .conf file looks like:</p> <pre><code>Options Indexes MultiViews FollowSymLinks </code></pre> <p>(You can find other configuration options out there on the 'net. I found this page: <a href="http://httpd.apache.org/docs/2.0/mod/core.html#directory" rel="noreferrer">http://httpd.apache.org/docs/2.0/mod/core.html#directory</a> )</p> <p>h) Save the file.</p> <p>Now you have to restart Apache so that it picks up the configuration change. Googling around a bit, I found that this is most easily done from the command line with the following command:</p> <pre><code>sudo /usr/sbin/apachectl restart </code></pre> <p>(Found that at <a href="http://mcapewell.wordpress.com/2006/09/22/restart-apache-in-mac-os-x/" rel="noreferrer">http://mcapewell.wordpress.com/2006/09/22/restart-apache-in-mac-os-x/</a> )</p> <p>Now that symbolic link should work just fine on your Sites pages.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload