K
K
Khaybulla Musaev2015-08-09 00:58:26
linux
Khaybulla Musaev, 2015-08-09 00:58:26

There are no rights to access the server with the same owner of the folder and the Apache process. How to eliminate?

The layout is as follows:
Remote VDS server, I install LAMP.
I specify in the file /etc/apache/envvars

APACHE_RUN_USER = musaevhs
APACHE_RUN_GROUP = musaevhs

In the file /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
        ServerName musaevhs.ru
        DocumentRoot /home/musaevhs/www

        <Directory '/home/musaevhs/www/'>
            AllowOverride All
            Allow From All
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

The owner of the folder is musaevhs, this user has sudo rights.
And it still spits out
Forbidden
You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at musaevhs.ru Port 80

Any ideas where to dig?..
If I put the DocumentRoot in the /srv folder that I created in the root, then everything works, it reads files. The /srv folder is owned by root

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-08-09
@martin74ua

hmm... do you have index.html in your folder?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question