Note that there are some explanatory texts on larger screens.

plurals
  1. POApache won't follow symlinks (403 Forbidden)
    primarykey
    data
    text
    <p>I'm having some trouble setting up Apache on Ubuntu. I've been following <a href="http://library.linode.com/lamp-guides/ubuntu-11.04-natty">this guide</a>.</p> <pre><code># /usr/sbin/apache2 -v Server version: Apache/2.2.17 (Ubuntu) Server built: Feb 22 2011 18:33:02 </code></pre> <p>My public directory, /var/www, can successfully serve up and execute PHP pages that are placed in it. However, I want to create a symlink in /var/www that points to a directory in my home folder and serve pages there. </p> <pre><code>[root /var/www]# ll total 36 drwxr-xr-x 3 root root 4096 2011-09-11 14:22 . drwxr-xr-x 14 root root 4096 2011-06-04 22:49 .. lrwxrwxrwx 1 root root 16 2011-09-11 13:21 about -&gt; /root/site/about </code></pre> <p>When I try to access /about on browser, I get </p> <pre><code>Forbidden You don't have permission to access /about on this server. </code></pre> <p>As far as I know, I gave sufficient privileges to the files I want to serve:</p> <pre><code>[root ~/site/about]# ll total 24 drwxr-xr-x 5 root root 4096 2011-09-11 13:20 . drwxr--r-- 3 root root 4096 2011-09-11 13:19 .. drwxr-xr-x 2 root root 4096 2011-09-11 13:21 contact -rwxr-xr-x 1 root root 1090 2011-09-11 13:19 index.php drwxr-xr-x 2 root root 4096 2011-09-11 13:20 me drwxr-xr-x 2 root root 4096 2011-09-11 13:21 resume </code></pre> <p>I'm aware of the FollowSymLinks option, and I believe it's set in my /etc/apache2/sites-enabled/000-default file:</p> <pre><code>DocumentRoot /var/www &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/&gt; Options FollowSymLinks Indexes MultiViews AllowOverride None Order allow,deny allow from all &lt;/Directory&gt; </code></pre> <p>Any idea what I could be missing?</p>
    singulars
    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.
 

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