Install apache in source code and configure forwarding. 1. Install Apachea. Unzip the package: tar-xvf httpd-*; B ). /configure -- prefix =/usr/oracle/apache CC = "gcc-m32" \ -- enable-proxy = shared -- enable-proxy-http = shared -- enable-proxy-ftp = shared -- enable-proxy-connect = shared -- enable-so -- enable-modules = all -- enable-mod-shared = allc) maked) make install basic operation method: This article assumes that your apahce installation directory is/usr/local/apache2, these methods are suitable for any situation apahce startup command: recommended/usr/local/apache2/bin/apachectl start Paceh start apache stop command/usr/local/apache2/bin/apachectl stop apache restart command: /usr/local/apache2/bin/apachectl restart to restart the Apache server without interrupting the current connection, run: /usr/local/sbin/apachectl graceful if apache is installed as a linux service, run the following command: service httpd start service httpd restart service httpd stop service configuration forwarding function open httpd In the conf folder of the apache installation directory. conf 1. Remove the comments # from the following two lines: # LoadModule proxy_module modules/mod_proxy.so # Loa DModule proxy_http_module modules/mod_proxy_http.so 2. add the following forwarding rules to the conf file: ProxyPass/cas http: // 192.168.0.206: 9090/cas ProxyPassReverse/cas http: // 192.168.0.206: 9090/cas forward requests starting with/cas to cas on port 206 of the server and so on. Other requests are also configured in this way, such as ProxyPass/cas http: // 192.168.0.206: 9090/cas ProxyPassReverse/cas http: // 192.168.0.206: 9090/cas # If bbs is not forwarded, use apache to process ProxyPass/bbs! ProxyPassReverse/bbs!