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

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


存檔
apachectl restart


undefined

創作者介紹
創作者 Hello World 的頭像
helloworld

Hello World

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