作者:岁月掌心_447 | 来源:互联网 | 2014-05-28 10:53
1,安装openssltarzxvfopenssl-1.0.0a.tar.gzcdopenssl-1.0.0a./config--prefix/usr/EASYPAY/easypay/IHS2047/opensslmakemakeinstall2,安装apache如果你已经安装了apache,你又不想重新编译的话,请参
1,安装openssl
tar zxvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a
./config --prefix=/usr/EASYPAY/easypay/IHS2047/openssl
make && make install
2,安装apache
如果你已经安装了apache,你又不想重新编译的话,请参考mod_ssl模块的安装,也就是添加ssl模块而已。
tar zxvf httpd-2.2.16.tar.gz
cd httpd-2.2.16
./configure --prefix=/usr/EASYPAY/easypay/IHS2047/httpd2222
--enable-ssl --enable-rewrite
--enable-so
--with-ssl=/usr/EASYPAY/easypay/IHS2047/openssl
make && make install
3,设置
反向代理
(1)检查mod_proxy
cd httpd2222/bin
httpd -l
(2)动态编译mod_proxy
/usr/local/apache2/bin/apxs -c -n -i mod_proxy.c proxy_util.c
/usr/local/apache2/bin/apxs -c -n -i mod_proxy_http.c
(3)配置反向代理
ProxyPass /easypay http:/IP:PORT/
ProxyPassReverse /easypay http://IP:PORT/