Praveen
Praveen

Reputation: 56501

HTTP Error 403.4 - Forbidden

When I access my localhost of my machine I get the following screen

enter image description here

whereas when I try the same in my server, I getting the following error

HTTP Error 403.4 - Forbidden The page you are trying to access is secured with Secure Sockets Layer (SSL).

I tried replacing http to https, but I am seeing the directory browsing. How to configure the localhost in server to change the screen.

My machine:
OS: Windows 8 IIS version: 8

My server machine:
OS: Windows 2012 server IIS version: 8

Please share your suggestions

Upvotes: 15

Views: 41293

Answers (3)

Rocky Ali
Rocky Ali

Reputation: 41

Remove "require SSL" from the site using the following instructions:

  1. Open IIS Manager
  2. Click on your website
  3. Click on the "SSL Settings" icon
  4. Uncheck "Require SSL"

Upvotes: 4

TheDaveJay
TheDaveJay

Reputation: 783

It appears you have set "required SSL" for the site and have not assigned a certificate to it.

You have 2 options:

Option 1. Remove "require SSL" from the site using the following instructions:

  1. Open IIS Manager
  2. Click on your website
  3. Click on the "SSL Settings" in the "IIS" section
  4. Uncheck "Require SSL"

Option 2. Associate a certificate to your site:

Have a look here

Upvotes: 45

Hiren Parghi
Hiren Parghi

Reputation: 1895

It seems you have selected "Require SSL" settings in the IIS. You need to remove it.

Please use the following steps to fix this error.

Open IIS.

Select your website which has the issue.

Click on the SSL Settings.

Untick the "Require SSL" option.

Upvotes: 1

Related Questions