AIX安装apache2.2.22+SSL

阅读更多
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/

你可能感兴趣的:(httpd,apachessl)