plesk windows requestfiltering for applications/domain
I notice IIS 7 includes a handler mapping for .exe.config to text/xml, but I’m still amazed that these two different Microsoft technologies don’t work well together. It seems like blocking web.config, application*.config, etc, still doesn’t need to block *.exe.config.
how on earth I can get IIS 7 to serve *.exe.config files?
A:
Global by:
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/requestFiltering /-fileExtensions.[fileExtension='.config']
Per domain:
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/security/requestFiltering /-fileExtensions.[fileExtension='.config']