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

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


存檔
apachectl restart


undefined

arrow
arrow
    文章標籤
    apache http https
    全站熱搜

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