首页 > 未分类 > mod_proxy+mod_ssl来转发https的请求

mod_proxy+mod_ssl来转发https的请求

2007年8月22日 发表评论 阅读评论

前面讲到用apache做反向代理
于是马上又有了新的课题:如果要把https的请求也做代理转发该怎么办?
大概查了查文档
好像也有办法
mod_ssl里支持SSLProxyEngine指令
直接将其打开即可,这样再加上mod_proxy
于是很容易就有了以下的配置文件内容:

SSLProxyEngine on
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://www.abc.com/
ProxyPassReverse / https://www.abc.com/

这个建议写到某个<VirtualHost>里
如<VirtualHost _default_:443>
如果是Fc(Fedora Core)的机器
强烈建议先装mod_ssl
yum install mod_ssl
然后再在配置文件/etc/httpd/conf.d/ssl.conf中的<VirtualHost _default_:443>的session中添加以上的配置内容

原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)

本文链接地址: mod_proxy+mod_ssl来转发https的请求

分类: 未分类 标签: ,
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word