apache上http自动跳转https

xiaoxiao2021-02-28  1

修改/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>
转载请注明原文地址: https://www.6miu.com/read-1600382.html

最新回复(0)