如何重定向http到https?
在伺服器上tomcat是和apache通過ajp連接的
配置如下
ProxyPass /webdnstool/ ajp://localhost:8009/webdnstool/
ProxyPass /eventlog/ ajp://localhost:8010/eventlog/
現在我想要到/eventlog 的http全部重定向到https去,應該怎麼辦呢?
《解決方案》
re
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^/eventlog(.*)$ https://${SERVER_NAME}/eventlog$1
over