Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up a simple development environment and even after setting all the permissions, I can't get past the 403 error

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    <Directory /var/www>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

I can access localhost but not the link:

<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
<p><a href="workspace/sitepath">Site</a></p>

the workspace directory is a symbolic link.

share|improve this question
Does apache have permissions to access the files that are symlinked? check the ownership of the files/folder. – frustratedtech Jan 21 '13 at 17:50
i added a+r permissions to the directories and checked everything. all permissions are set that i can tell. – Bill.Caffery Jan 21 '13 at 17:52
What does apache error log state when you access? – frustratedtech Jan 21 '13 at 17:55
up vote 0 down vote accepted


When I installed the os, I must have ticked the encrypt my home folder box, not sure if this is really the issue but I'm sure it was no help.

I moved the workspace dir to /var/www/ and everything is working.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.