Recently, we came across an error - "Forbidden You don't have permission to access / on this server" while trying to run a new virtual host on our Ubuntu 14.04 machine. The first step to troubleshoot this type of issue would be to check at your Apache error logs as this specific type status can be thrown due to many reasons. Since we have Apache 2.4.7 installed on our system, each virtual host file should have the .conf extension. We corrected the extension also. But the issue was still there. However this information lead us to think on it further and finally we found the reason for the issue.
Technical Solution
Ubuntu
Virtual Host
Apache
Leave a reply
Your email address will not be published. Required fields are marked *
Avi (not verified)
access_time
27 Jan 2021 - 04:55
I just spend the whole afternoon trying to figure out why apache2 won't come up.
I must have gone through 10's of sites.
This is the only one that helped.
Thanks!
Anonymous (not verified)
access_time
27 Jan 2021 - 04:55
Fyi...
That message can also occur in some browsers when a client (user) uses a VPN addon extension in her/his browser & tries to connect to a server which forbids such connections (yes, some servers can be configured to respond with that message when traffic from specific IPs (i..e known VPN servers) are received.
If you are using a VPN, disable it to see if that message disappears.
Gary (not verified)
access_time
27 Jan 2021 - 04:55
Just installed Mac Yosemite 10.10.5.
initially http://localhost worked fine.
After configuring the Virtual Host configuration.
I get the error:
You don't have permission to access / on this server.
Require all granted
That option is set in my httpd.conf
Any suggestions.
Karla (not verified)
access_time
27 Jan 2021 - 04:55
Thank you so very much.
Add new comment