歡迎您光臨本站 註冊首頁

如何重定向http到https?

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

如何重定向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

[火星人 ] 如何重定向http到https?已經有279次圍觀

http://coctec.com/docs/service/show-post-20045.html