Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2003 啟用 IIS 6.0 ASP 腳本支援圖文教程

編輯:Windows 2003 常見問題解答

背景

Windows Server 2003 預設不安裝 IIS 6.0,即便安裝後亦預設停用 ASP (Active Server Pages) 執行權限,以減少攻擊面。若現有 Web 應用依賴 ASP,需手動啟用。

操作步驟

  1. 「開始」→「管理工具」→「Internet 資訊服務 (IIS) 管理員」。
  2. 左側樹狀視圖選中本機節點,右側點擊「Web 服務擴展」。
  3. 在列表中找到 Active Server Pages,雙擊或右鍵選「允許」。
  4. 狀態欄顯示「已允許」即表示 ASP 執行權限已開啟。

驗證

在網站根目錄建立 test.asp,內容:<% Response.Write("ASP Enabled") %>,瀏覽器訪問若顯示字串即成功。

注意事項

  • 原有 ASP 元件 (COM/DLL) 仍可繼續使用,無需重寫。
  • 啟用 ASP 後,建議同步部署 URLScan、請求篩選等緩解措施,平衡相容性與安全。
Copyright © Windows教程網 All Rights Reserved