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

Questions related to the Apache server
Post Reply
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

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

Post 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.
Last edited by mister_v on Tue Mar 15, 2011 4:56 pm, edited 1 time in total.
chris
Site Admin
Posts: 194
Joined: Mon Jul 21, 2008 9:52 am

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

Post 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.
mister_v
Posts: 188
Joined: Thu Mar 04, 2010 9:19 pm

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

Post 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.
Post Reply