HTTP Error 403.4 - Forbidden

Praveen picture Praveen · Oct 11, 2013 · Viewed 23.9k times · Source

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

Answer

TheDaveJay picture TheDaveJay · Oct 11, 2013

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