歡迎您光臨本站 註冊首頁

(期待高手)解決APACHE的SSL配置后的問題!

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

(期待高手)解決APACHE的SSL配置后的問題!

原帖見http://bbs.chinaunix.net/thread-1717578-1-1.html

在一個APACHE上配置了SSL,同時監聽了443和80;
現在不想把所有的http請求轉為https;即我通過http://ip還能訪問原來的http
https://ip訪問ssl
但當我輸入http://ip:443的時候自動跳轉到https://ip
請問有沒有人會寫這個的rewrite規則。幫助一下。
《解決方案》

https默認就是443

http是80

你這個問題正常的吧
《解決方案》

回復 2# scyzxp


我還以為有高手來解答!
我知道https就是443;你看那個原帖了嗎?
https://ip 能正常訪問SSL;
http://ip 也能正常訪問。

就是想寫個重寫規則,把http://ip:443 轉發到 https://ip

這樣不知道明白了沒有。
《解決方案》

http://blog.csdn.net/ljlsunny/archive/2009/07/23/4373644.aspx


http://www.google.com/search?hl=en&source=hp&q=apache+rewrite+%E8%A7%84%E5%88%99%E8%AF%A6%E8%A7%A3&aq=1&aqi=g2&aql=&oq=apache+rewrite+%E8%A7%84%E5%88%99&gs_rfai=


查了這些資料。不知道能不能用。我還在期待CU的高手。
《解決方案》

rewrite 伺服器參數說明
http://blog.mmclub.net/index/view/article_id/82
《解決方案》

RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^/?(.*)$https://%{SERVER_NAME}/$1
《解決方案》

RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^/?(.*)$https://%{SERVER_NAME}/$1[L, ...
bdsnmp 發表於 2010-08-09 15:27 http://bbs.chinaunix.net/images/common/back.gif


    明天去單位試試你的答案。
《解決方案》

回復 6# bdsnmp


    對不起,不可用也。

[火星人 ] (期待高手)解決APACHE的SSL配置后的問題!已經有601次圍觀

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