We help IT Professionals succeed at work.
Get Started

Why am I getting a 403 error?

Bruce Gust
Bruce Gust asked
1 Endorsement
Last Modified: 2019-12-23
I moved the Laravel site I was working on from one box to another. I can access the site just fine if I do http://localhost/new_nomas/public/index.php. However, if I try to configure my httpd-vhosts.config file to accommodate a "new_nomas.site" url, as I did on the other computer, I'm getting a "403 Forbidden" error.

I'm running Apache 2.4.41. Here's my httpd-vhosts.config file:

<VirtualHost *:80>
	ServerName nomas.site
	DocumentRoot c:/wamp/www/new_nomas/public
	<Directory "c:/wamp/www/new_nomas/public">
	AllowOverride All
    Require all granted

Open in new window

...and here's my "hosts" file from the Windows/System32/drivers/etc directory: nomas.site

Everything is pretty much identical to what I had before, but when I attempt "nomas.site" in my URL, I get a "403 Forbidden" message.

I've adjusted the security permissions in all of the files...

What am I missing?
Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 2 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE