I know this question has been asked a lot of times but I'm completely stucked.
My /var/www/html
folder contains:
mbfr/
|-- index.html
|
school/
|-- index.html
I want to exemple.com
serves the mbfr
directory and exemple.com/school
serves the school
directory. Here is my VirtualHosts
config file:
<VirtualHost *:80>
ServerName exemple.com
ServerAdmin [email protected]
DocumentRoot /var/www/html
Alias / /mbfr
Alias /school /school
<Directory "/var/www/html/school">
Order allow,deny
Allow from all
Require all granted
</Directory>
<Directory "/var/www/html/mbfr">
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
exemple.com
works fine but exemple.com/school
gives me
Forbidden
You don't have permission to access /school/ on this server.