Win10 IIS 啟動 web server
啟用IIS服務
- 打開 Win10 控制台
- 選擇 Programs and Features
- 選擇 Turn Windows features on or off
- 啟用 Internet Information Services
- 安裝完成後, 搜尋並打開 IIS Manager
啟動 web server
- 選擇 Default Web Site
- Add virturl directory

- 新增資料夾, 設定url目錄別名, 確認 Connect As 選擇 Application user
- 目標資料路徑會影響使用權限,導致權限不足無法開啟。 ✗ 桌面 ✓ D槽

設定 MIME Types

- 新增 egret font, 以免無法讀取

副檔名 |
MIME type |
fnt |
application/json |
tga |
image/x-tga |
某些特殊script |
text/plain |
-
Default Web Site 按啟動就完成

-
設定自動開啟
參考文章
CORS 開放跨網域存取
- 在 Http response 新增欄位
- key: Access-Control-Allow-Origin
- value: *
[參考文章]( https://blog.yowko.com/iis-enable-cors )
更換瀏覽預設IP
- 點選 Default Web Site
- Edit Bindings
- 第一順位的 IP address 預設星號, 改成自選 IP

開啟資料夾瀏覽
- 點選 Default Web Site
- Directory Browsering
- Actions 點選 Enable

啟用本機測試用的 HTTPS
參考文章
步驟:
- 開啟 Server Certificates
- Create Self-Signed Certificate
- friendly name 隨意輸入, 選擇 Personal 即可
- Default Web Site 選擇 Edit Bindings
- 新增 https, IP 選 All Unassigned, port 可用預設的 443
- SSL 選擇剛剛建好的 certificate