iis 403 forbidden access is denied

I have seen all the other Forbidden Access is denied post, But i have added a DefaultDocument and have enabled Directory Browsing.

When I enable Directory Browsing I see the files but once i click a folder or file it says Server Error in ‘/MyApp’ Application. The resource cannot be found.

But I check the physical location and everything is there nothing is corrupted.

Also when I add the default document it is a .cshtml but nothing happens, I see the same 403 Forbidden Error.

I would appreciate any words of advice or tips to help me resolve this issue.

I installed IIS URL Rewrite 2.0 and add a rule to redirect all http links to https. Here is my Web.Config Code:

Everything looks fine. But when I access my website using http, it throws 403 error.

TLS 1.0 is enabled with IIS 7.5.

Where I can get more info on exactly what type of 403 error it is?

Содержание

  1. 2 Answers 2
  2. Comments
  3. ze >Aug 14, 2017

2 Answers 2

SSL was enabled in IIS. I just read somewhere that in SSL Settings Require SSL need to be unchecked when using URL Rewrite 2.0.

I deselect the Require SSL and click Apply. Its working fine now.

Its not sure if this will help but I see your rule is not enabled

Comments

Copy link Quote reply

ze >Aug 14, 2017

«403 — Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.»

On ALL SSL sites after letsencrypt renewal process
Valid SSL certificates shown
Also affected existing non-letscencrypt sites.

Источник: computermaker.info

Техника и Гаджеты
Добавить комментарий