# vi /usr/local/etc/apache22/httpd.conf
....
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}$1 [L,R]
存檔
apachectl restart

- Nov 04 Fri 2011 10:34
-
如何強迫apache將http轉成https
請先 登入 以發表留言。