Page 1 of 1

Solved:You don't have permission to access / on this server.

Posted: Wed Dec 01, 2010 5:29 pm
by mister_v
Hi,

Installed apache, set up the virtual hosts.
But i get the following message:

Code: Select all

You don't have permission to access / on this server.
But everyone should have access,
and I'm accessing it from the local host.

Re: You don't have permission to access / on this server.

Posted: Mon Mar 14, 2011 5:08 pm
by chris
Perhaps i you post your config-files we could help you.

It sounds like file permission problems.
Makes sure the user www-data has read access.

Re: You don't have permission to access / on this server.

Posted: Tue Mar 15, 2011 4:55 pm
by mister_v
yes, it was indeed a problem with the permissions.
I had a symbolic link to my home directory.

In my config-file everything was OK
/etc/apache2/sites-available/immo

Code: Select all

<VirtualHost *:8084>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/immo
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/immo>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                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>
When I created a new group added www-data to it and update the group settings of specific directory,
no more problems.