Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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>
    <Directory /var/www>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

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

    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
</VirtualHost>

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>
</body></html>

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

1 Answer 1

up vote 0 down vote accepted

Resolved!

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

 
discard

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.