強制把 80 轉到 443 Home » 作業系統-Linux » 強制把 80 轉到 443 編輯 httpd.conf 在 # End of proxy directives. 後加入下面幾句 (應該是加在哪裡都ok)RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule ^/?(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]不過需先確認是否有載入下面這個moduleLoadModule rewrite_module modules/mod_rewrite.so
0 意見:
張貼留言