apache上http自动跳转https,apachehttps


修改/etc/httpd/conf/httpd.conf



<Directory />

    Options FollowSymLinks
    AllowOverride All
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</Directory>

相关内容

    暂无相关文章