Install apache in source code and configure forwarding

Source: Internet
Author: User
Install apache in source code and configure forwarding. 1. install Apachea. unzip the package: tar-xvfhttpd-*; B ). /configure -- prefix/usr/oracle/apacheCC & quot; gcc-m32 & quot; \ -- enable-proxyshared -- enable-proxy-httpsh source code install apache and configure forwarding I. install Apachea) decompress: 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: it is recommended that/usr/local/apache2/bin/apachectl start apaceh 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 following two comments #: # LoadModule proxy_module modules/mod_proxy.so # LoadModule proxy_http_module modules/mod_proxy_http.so 2. in httpd. add forwarding rules to the end of the conf file, for example, 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 # Bbs does not forward data. apache is used to process ProxyPass/bbs! ProxyPassReverse/bbs!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.