Skip to content
Advertisement

Wamp : You don’t have permission to access file.html on this server

I tried to create a virtualhost to access to my local website using wampserver, but i get a 403 Forbidden when i’m trying to access to the webpage :

I put the following line in my browser :

JavaScript

enter image description here

Here is the content of my httpd-vhost file :

JavaScript

I put the alias also in my host file :

JavaScript

Advertisement

Answer

I will share my httpd.conf for AMPPS under windows(should be very similar to wamp)

JavaScript

I also use host file for local DNS

JavaScript

hope that helps !

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement