Answer the question
In order to leave comments, you need to log in
Why does "You don't have permission to access / on this server" appear?
Good afternoon. OS Ubuntu 16.04
Installed
> sudo apt-get install apache2
> sudo systemctl enable apache2
> sudo systemctl start apache2
VirtualHost *:80>
ServerName it.loc
ServerAlias www.it.loc
ServerAdmin [email protected]
DocumentRoot /media/my_folder/3ABBCCD87BB08752/www/it.loc
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /media/my_folder/3ABBCCD87BB08752/www/it.loc>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
sudo a2ensite it.loc.conf
sudo systemctl restart apache2
sudo vi /etc/hosts
127.0.0.1 it.loc
sudo systemctl restart apache2
Answer the question
In order to leave comments, you need to log in
yes, add the apache user (www-data?) to the my_folder group and you will be happy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question