IIS 6 出于安全考慮, 默認(rèn)最大請(qǐng)求200K(也即最大提交數(shù)據(jù)限額為200KByte, 204800Byte).
解決辦法:
1. 關(guān)閉 IIS Admin Service 服務(wù)
2. 打開 \Windows\system32\inesrv\metabase.xml
3. 修改 ASPMaxRequestEntityAllowed 的值為自己需要的, 默認(rèn)為 204800
4. 啟動(dòng) IIS Admin Service
Addon: 解決方法2
1. 新建文本文件:
'use VBS set obj1=GetObject("winmgmts:/root/MicrosoftIISv2") set obj2=obj1.get("IIsWebVirtualDirSetting='W3SVC/1/ROOT'") 'Output default value WScript.Echo "AspMaxRequestEntityAllowed Default Value: " & obj2.AspMaxRequestEntityAllowed 'Reset the value obj2.AspMaxRequestEntityAllowed=1024000 ' set to 1mbyte, u can set to other what you want :) ' Save data obj2.Put_() 'Output new value WScript.Echo "AspMaxRequestEntityAllowed New Value: " & obj2.AspMaxRequestEntityAllowed
2. 保存為requestchange.vbs 3. 進(jìn)入命令行, 運(yùn)行: cscript [path]requestchange.vbs
本文轉(zhuǎn)自www.ssite.org
出處:藍(lán)色理想
責(zé)任編輯:Tunco
|