Answer the question
In order to leave comments, you need to log in
How to add a host to /home? (LAMP)
Installed LAMP. Everything is working. I start adding a new host to my home folder, I access the site both by name and by ip, the browser writes to me:
Forbidden
You don't have permission to access / on this server.
/home/wapalico/web/www/mysite.local/index.html
127.0.0.1 localhost mysite.local
<VirtualHost *:80>
ServerName mysite.local
ServerAdmin [email protected]
DocumentRoot /home/wapalico/web/www/mysite.local/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo chmod -R 777 /home/wapalico/web/www/
<VirtualHost *:80>
DirectoryIndex index.html
Answer the question
In order to leave comments, you need to log in
The solution was prompted by andwer07 , from forum.ubuntu.ru
Added the following lines to the apache2.conf file:
<Directory /home/wapalico/web/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question