operamasks
operamasks的博客大巴空间
-
2008-06-24
使用rewrite module解决SSL访问问题
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://operamasks.blogbus.com/logs/23496723.html
Apache + Apusic的集群,client到Apache端采用的是双向SSL连接,Apache到Apusic走的是http。应用的虚拟访问路径为/test,当访问https://hostname/test/时,Apache能够正常跳转到Apusic,而当访问 https://hostname/test时,Apache不能正常跳转。
解决办法:
启用Apache的rewrite module(可能需要重新编译) ,将/test访问重定向到该应用下的欢迎页面,配置片段参考如下:
BODY { BACKGROUND-POSITION: left top; MARGIN-TOP: 100px; FONT-SIZE: 10pt; MARGIN-LEFT: 15px; COLOR: #000000; BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: 宋体; BACKGROUND-COLOR: #ffffff }LoadModule rewrite_module modules/mod_rewrite.sorewriteengine on
rewriterule ^/test$ https://hostname/test/index.jsp随机文章:
linux 下wget的使用 2008-11-27如何在linux下停止后台启动的Apusic进程 2008-11-13Apusic支持GZIP压缩 2008-06-27使用jconsole监控Apusic 2008-05-28
收藏到:Del.icio.us








