Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.5 - 403 Forbidden

Ok, I have scoured online resources and applied all the suggested solutions.

I am setting up a simple website on Windows Server 2008 R2 under IIS 7.5 using the "ASP.NET v4.0" pool. I am setting this up as an application under Default Web Site with a different root. I keep getting the 403 Forbidden error.

I have:

  1. Installed asp.net using aspnet_regiis.exe -i (many times)
  2. Made sure my root directory (physical path) has permissions for "IIS_IUSR" and "IUSR" users.
  3. Made sure "Anonymous Authentication" is enabled and set to "Application Pool Identity"
  4. I have restarted IIS numerous times
  5. I have checked and double-checked every other configuration.

What's strange is that I have another application under Default Web Site and it works just fine.

Any suggestions will help. This shouldn't be so hard unless I am missing something obvious.

like image 380
dotnetster Avatar asked Jun 20 '12 02:06

dotnetster


People also ask

Is 403 Forbidden permanent?

This status is similar to 401 , but for the 403 Forbidden status code re-authenticating makes no difference. The access is permanently forbidden and tied to the application logic, such as insufficient rights to a resource.


1 Answers

Ok, I am quite embarrassed but the over sight was that "Require SSL" was checked by default and that is the place I did not check. I guess it is because an SSL is bound to the Default Web Site. Removing that check made it work.

Hopefully this will help someone else.

like image 85
dotnetster Avatar answered Oct 01 '22 01:10

dotnetster