Apache HTTP Server Usage Guide

Source: Internet
Author: User

Apache HTTP Server Use guide 1 Revision History

Version Modify History Author Describe Development time (h)
0.1 2007-8-7 Levinsoft Basic structure, basic process for creating documents 1
0.2 2007-8-21 Levinsoft Increase startup mode 0.1
2 IntroductionThis article describes the basic concepts of Apache HTTP Server, Agent function configuration steps, operational considerations and related reference resources. 3 Basic ConceptsThe Apache HTTP Server Project is a effort to develop and maintain a Open-source HTTP server for modern operating system s including UNIX and Windows NT. The goal of this project are to provide a secure, efficient and extensible server that provides HTTP services in sync with The current HTTP standards. Apache has been the most popular Web server on the Internet since April 1996. The November Netcraft Web Server Survey found this more than 70% of the Web sites on the Internet are using Apache, t Hus making it more widely used than all other Web servers combined. The Apache HTTP Server is a project of the Apache Software Foundation. 4 Apache HTTP Server Agent feature configurationApache HTTP Server has the function of IP proxy, this can convert the extranet IP can access to intranet IP. 4.1 Installation steps and related configuration 4.1.1 InstallationInstalled under Linux and UNIX. #tar-vzxf httpd-2.0.50.tar.gz #cd httpd-2.0.50 #./configure--prefix=/usr/local/apache2--enable-track-vars-- Enable-proxy--enable-cgi--enable-so--enable-mods-shared=all--with-config-file-path=/usr/local/apache2/conf # Make #make Install 4.2 Configuration stepsThis takes window 2000 as an example, and the configuration of Linux is similar. 4.2.1 Set Apache dynamic Proxy Server (Windows) Suppose Apache is installed under C:/apachegroup/apache2 to open httpd.conf file 1 under the Conf directory find #LoadModule proxy_module modules/mod_proxy.so # LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_ http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so Remove # To make the Dynamic Agent module effective 2 at the end of the file, add the following configuration options <virtualhost 60.190.200.11:80>     ServerAdmin wangzm@channelsoft.com     documentroot c:/ Apachegroup/apache2/htdocs     ServerName 60.190.200.11     proxyrequests off      proxypass/test http://192.168.100.100:8080/test     proxypassreverse/test http:// 192.168.100.100:8080/test     ErrorLog logs/channelsoft.com-error_log     customlog Logs/channelsoft.com Common </VirtualHost> Description: 60.190.200.11 represents the address of the dynamic proxy server Apache Proxypass and Proxypassreverse represent users who jump to the intranet Web server when they are typing test in the browser. 4.2.2 Set intranet Web serverTake the resin application server as an example: 1. Open the firewall of intranet Web server.    Run setup-> firewall configuration-> enable 2. Modify the resin.conf file configuration to open the Resin application Server resin.conf file, find: 4.2.3 Start Service1. /usr/local/apache2/bin/./Apachectl Stop, start, restart 2. Ps-ef|grep apache2 View Run 4.2.4 detection configuration is in effectRestart the Apache proxy Server and Intranet Web server. The content of Http://192.168.100.100:8080/test (intranet Web server) can be accessed through http://60.190.200.11/test (dynamic proxy server). 4.3 FAQs and Precautions1. Apache HTTP Server has a different version in Unix,linux,windows. 2. On a host, allow two network cards, can be configured intranet and extranet IP. For example: Extranet IP is: 60.190.247.11; Intranet IP address is: 192.168.1.11, port number is: 8080, 3. When configuring, be sure to set up the so file with proxy. 4. You can set the loop agent inside the virtualhost tag in the configuration file, which means that there is a proxy path to switch to another new proxy server. 5. Apache HTTP Server currently can only proxy HTTP, cannot proxy ftp. 4.4 Configuration Instances<virtualhost 134.96.71.120:80> ServerAdmin wangzm@channelsoft.com Documentroot/usr/local/apache2/htdocs ServerName 134.96.71.120 proxyrequests off proxypass/test http://134.96.71.27:8080/boss proxypassreverse/te St Http://134.96.71.27:8080/boss PROXYPASS/VPM http://134.96.71.28/vpm proxypassreverse/vpm http://134.96.71.28/ VPM ErrorLog logs/test_error.log customlog logs/test.log commom </VirtualHost> 5 summary and ProspectA simple summary of the previous knowledge B) the future improvement part 6 reference materials1. Http://httpd.apache.org/2. 7 Terminology and appendices

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.