Why is there a "You don't have permission to access / on this server"?

0 like 0 dislike
Good afternoon. OS Ubuntu 16.04
> sudo apt-get install apache2 > sudo systemctl enable apache2 > sudo systemctl start apache2

Next, my file is in /etc/apache2/sites-available/it.loc.conf
VirtualHost *:80> ServerName it.loc ServerAlias www.it.loc ServerAdmin webmaster@localhost DocumentRoot /media/my_folder/3ABBCCD87BB08752/www/it.loc ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Options Indexes FollowSymLinks AllowOverride All Require all granted 

Team conducted
sudo a2ensite it.loc.conf sudo systemctl restart apache2 sudo vi /etc/hosts it.loc sudo systemctl restart apache2

and this error occurs. Apache I have is on the computer, and the site folder on the external rail.
by | 12 views

2 Answers

0 like 0 dislike
Yes, add the user Apache(www-data?) the group my_folder and be happy
0 like 0 dislike
sudo chmod 777-R /media/my_folder/3ABBCCD87BB08752/www/
maybe just simply not enough rights to the directory.

Related questions

0 like 0 dislike
2 answers
asked Aug 3, 2019 by klast
0 like 0 dislike
6 answers
110,608 questions
257,186 answers
28,664 users