Install apache2 on redhat5

Install apache2 on redhat5

1. I download the file from the URL
http://labs.renren.com/apache-mirror//httpd/httpd-2.2.17.tar.gz

2. release the package
>gzip –d httpd-2.2.11.tar.gz
>tar xvf httpd-2.2.11.tar

3. configure
>./configure --prefix=/opt/httpd --enable-so --enable-proxy --enable-proxy-ajp --enable-proxy-http --enable-proxy-ftp --enable-proxy-connect --enable-proxy-balancer

4. make
>make
>make install

5. start and stop the server
>cd /opt/httpd/bin
start command>./apachectl –k start
restart command>./apachectl –k restart

6. configurate on httpd.conf
/opt/httpd/conf/httpd.conf
add proxy line:
ProxyPass          /easy http://192.168.10.250:8080/easy
ProxyPassReverse   /easy http://192.168.10.250:8080/easy

猜你喜欢

转载自sillycat.iteye.com/blog/795517
今日推荐