How to set Allow Parent Paths in IIS Express Config

后端 未结 2 760
醉话见心
醉话见心 2021-02-05 03:58

I\'m assuming this is possible in the applicationhost.config file but I did not see a parent paths setting.

How do you allow parent paths for a specific site running und

2条回答
  •  孤城傲影
    2021-02-05 04:34

    The following should get you going.

    • On 32bit system "%programfiles%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true

    • On 64 bit system"%programfiles(x86)%\iis express\appcmd" set config "Default Web Site/myapp -section:asp -enableParentPaths:true

    Link to related IIS 7 config reference: http://www.iis.net/ConfigReference/system.webServer/asp

提交回复
热议问题