IIS 7.5 - 403 Forbidden

后端 未结 10 1227
傲寒
傲寒 2020-12-09 09:20

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

相关标签:
10条回答
  • 2020-12-09 09:45

    For me the answer was in handler mappings section of IIS 7.5

    Adding the following to web.config enabled all the aspx pages to work correctly

    <configuration>
    ...
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <handlers accessPolicy="Read, Script" />
        ... 
      </system.webServer>
    </configuration>
    
    0 讨论(0)
  • 2020-12-09 09:49

    Haha you think that is embarrasing! This is probably the 1000th webserver I've installed... 30mins of 403s!! I can't figure it out. There is a stub default.asp in there.. permissions all correct... everything!

    I turned on "directory" browsing in desparation of flicking around.

    default.asp.txt is sitting there..... DOH.

    Need to turn OFF "known file types"... why is that setting like that anyway?

    0 讨论(0)
  • 2020-12-09 09:50

    Grant permission to the Network Service user in the NTFS folder

    Also check the .Net authorization rules:

    enter image description here

    enter image description here

    0 讨论(0)
  • 2020-12-09 09:50

    Mine was even more embarrassing.

    Right Click on folder,Remove READ only attribute.

    0 讨论(0)
提交回复
热议问题