關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 修改 IIS 上傳限制

    Posted on March 26th, 2009 Sam Tang No comments

    IIS 預設上傳限制為 200kb,要修改這個限制,方法如下:

    1. 開啟 Internet Information Services Manager (IIS)。 (中文版好像叫 IIS 管理員)

    2. 在 server 上面 right click 及選擇 Properties

    3. 選取 "Enable Direct Metabase Edit" 並按 OK

    4. 開啟 Notepad,開啟以下檔案

    %Windows dir%\System 32\Inetsrv\MetaBase.xml

    5. 找出字串 AspMaxRequestEntityAllowed,預設是 204800,即 200kb,例如想改為 5mb 的話,應改為:

    預設為 AspMaxRequestEntityAllowed = "52428800"

    6. 完成後儲存 MetaBase.xml 便完成,不須要重新啟動 IIS。

    7. 回到 Internet Information Services Manager (IIS),移除 "Enable Direct Metabase Edit" 的選項。


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word