跳到主要內容

發表文章

目前顯示的是 2月, 2017的文章

[windows] 自建WSUS Client設定

1 執行gpedit.msc 開啟[本機群組原則編輯器] 2.選擇[本機電腦原則]>[電腦設定]>[系統管理範本]>[windows元件]>[windows update] 3.選擇[指定近端內部網路Microsoft更新服務的位置] 4.設為[已啟用],並設定[設定偵測更新的近端內部網路更新服務]與[設定近端內部網路統計伺服器]到自己架設的WSUS主機 設定參數如:http://Your_domain_or_ip:8530

[IIS]force HTTPS using a web.config file

   自架的IIS 要先安裝這個套件   URL Rewrite   如果在azure上的app就不需要   然後在web.config下的 [system.webServer] 區段   填入以下內容    [rewrite]       [rules]         [rule name="HTTP to HTTPS redirect" stopprocessing="true"]           [match url="(.*)"]           [conditions]             [add ignorecase="true" input="{HTTPS}" pattern="off"]           [/add][/conditions]           [action redirecttype="Found" type="Redirect" url="https://{HTTP_HOST}/{R:1}"]         [/action][/match][/rule]       [/rules]     [/rewrite]