D
D
Dmitry Baskakov2020-04-29 18:51:32
Apache HTTP Server
Dmitry Baskakov, 2020-04-29 18:51:32

Why is Access forbidden! when adding a new host?

Why is Access forbidden! when adding a new host?

new host settings:

<VirtualHost *:80>
        DocumentRoot "/home/dmitry/ApacheHosts/dostavka.loc/"
        ServerName dostavka.loc
        ServerAdmin [email protected]
        ErrorLog "/var/log/httpd/dostavka.loc-error_log"
        TransferLog "/var/log/httpd/dostavka.loc-access_log"

<Directory />
        Options +Indexes +FollowSymLinks +ExecCGI
        AllowOverride All
        Order deny,allow
        Allow from all
        Require all granted
        DirectoryIndex index.html index.php
</Directory>

</VirtualHost>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
astorrecaprio, 2020-04-29
@astorrecaprio

What's in the logs?

M
motcart, 2020-04-30
@motcart

See who owns the folder with the site
ls -al
. Do other sites work in folders nearby? You may also need to give read permissions to the home folder itself to the user on whose behalf the web server is running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question