在IIS6上的配置很簡單.比如,我把ASP的后綴自定義為.do后.在IIS6上只需要添加對應的處理程序映射
把.asp的配置復制后,新建一個.do的,配置好后,就能執行.do了.沒有一點問題.
現在在IIS7.5中,我怎么配置都不能成功.
添加了處理程序映射,也添加了MIME,怎么都不行.真不知道IIS升級后,怎么這么麻煩.
前兩天我也把站點從IIS6.0遷移到IIS7.5,也發現了樓主同樣的問題,分享一下解決方案。
------------------------------
1,安裝好IIS7.5;
2,發布站點,刪除原站點根目錄下的web.config文件;
3,配置站點,如ASP啟用父目錄、ASP最大請求實體主體限制、處理程序映射……等等;
4,文本編輯器打開新的web.config:
<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <httpErrors> <remove statusCode="500" subStatusCode="-1" /> <error statusCode="500" prefixLanguageFilePath="/inetpub/custerr" path="500-100.asp" responseMode="File" /> </httpErrors> <directoryBrowse enabled="false" /> <defaultDocument> <files> <clear /> <add value="index.新后綴" /> <add value="default.新后綴" /> </files> </defaultDocument> <handlers> <add name="ASP-新后綴" path="*.新后綴" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%/system32/inetsrv/asp.dll" resourceType="File" requireAccess="Script" /> </handlers> </system.webServer></configuration>
(注意:在動詞verb一欄必須都是大些,requireAccess修改成腳本模式即"Script",保存web.config后重啟站點,大功告成)
新聞熱點
疑難解答
圖片精選