How to configure apache2 with symbolic links in /var/www/?

Solution 1:

These permissions are preventing apache from accessing you

drwxrwx--- 3 user user     4096 okt 13 17:31 ..

You need to give execute permissions for others:

chmod o+x /home/juul/Workspaces/

(and perhaps on /home/juul/ as well).

Solution 2:

I have a standard apache install on 14.04. There are no files or directories specifying "www-data". Did you change all these yourself? There is a lot of outdated or simply incorrect information on how to set up web servers, so be careful who you follow, and undo what doesn't work.

That said, "site1" should be in the html directory, and owned by you. It doesn't really need to be a symlink; you can specify a different directory in the config file. Something like this:

# Add this to the end of the existing 000-default.conf file (after "</VirtualHost>")
<VirtualHost *:80>
    <Directory  /home/user/Workspaces/site1>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    DocumentRoot /home/user/Workspaces/site1
    ServerName site1
</VirtualHost>