# vi /usr/local/etc/apache22/httpd.conf

....
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}$1 [L,R]


存檔
apachectl restart

helloworld 發表在 痞客邦 PIXNET 留言(0) 人氣()