First, configure Apache platform software
1. Download Apache software
http://httpd.apache.org/from the Apache official website to download the Windows installation version of the Apache server, now share to everyone.
2. The method/steps are as follows:
2.1, enter the Apache server official website http://httpd.apache.org/, here we download stable version of httpd 2.2.29 for example, click Download.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/41/wKiom1Qo-NWDX3lzAAa13MPPzVQ075.jpg "title=" 1.png " alt= "Wkiom1qo-nwdx3lzaaa13mppzvq075.jpg"/>
2.2, download.cgi page, scroll down to find 2.2.29, with two download options
source:httpd-2.2.29.tar.gz [PGP] [MD5] [SHA1]
source:httpd-2.2.29.tar.bz2 [PGP] [MD5] [SHA1]
But these two are installation packages installed under Unix-like systems, not what we want. Here we click Other files.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/44/wKioL1Qo-YDwIvfTAAMWIXQVoPs483.jpg "title=" 2.png " alt= "Wkiol1qo-ydwivftaamwixqvops483.jpg"/>
2.3, the page will prompt: Thisdownload page includes only the sources to compile and build Apache yourself with th e proper tools. Download The precompiled distribution for your platform from binaries/.
That is, just those two are not compiled by the source code, to download the corresponding compiled platform needs to go to binaries download, click here next to the binaries link.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/44/wKioL1Qo-j6Dh5HtAAOESeMY3ZQ100.jpg "title=" 3.png " alt= "Wkiol1qo-j6dh5htaaoesemy3zq100.jpg"/>
2.4, click Win32 can.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/44/wKioL1Qo-r2h8lPtAARr47tIwc4795.jpg "title=" 4.png " alt= "Wkiol1qo-r2h8lptaarr47tiwc4795.jpg"/>
2.5, after the point in, 32-bit Windows HTTP Server 2.2.25 with SSL and non-SSL version, according to the need to choose one, the following FTP plug-ins can be downloaded
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/42/wKiom1Qo-z_DFGnbAAQdC_6lZwM643.jpg "title=" 5.png " alt= "Wkiom1qo-z_dfgnbaaqdc_6lzwm643.jpg"/>
Second, the installation of Apache services in Windows environment
1. Install Apache software:
A, run the installation software, welcome interface, Direct Click Next.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/42/wKiom1Qo_WjRUm9eAAG2Dl0tUAk184.jpg "title=" 6.png " alt= "Wkiom1qo_wjrum9eaag2dl0tuak184.jpg"/>
B, agreement, agree, click Next.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/42/wKiom1Qo_ePDr0M8AAIAo32Bidk753.jpg "title=" 7.png " alt= "Wkiom1qo_epdr0m8aaiao32bidk753.jpg"/>
Click Next
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/42/wKiom1Qo_gvzs6rpAAJ5SyAtqUM241.jpg "title=" 8.png " alt= "Wkiom1qo_gvzs6rpaaj5syatqum241.jpg"/>
C, basic configuration information, are used for error message prompt information: The first two server-related information, if there is a fixed domain name, For example, Www.baidu.com, the first line to write baidu.com, the second line to write www.baidu.com; otherwise two write localhost; the third line fills in the administrator email address (This is my own mailbox), other according to the picture the way fills in!!!
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/43/wKiom1Qo_yPyRuC7AAG7PW3_j4A506.jpg "title=" 9.png " alt= "Wkiom1qo_ypyruc7aag7pw3_j4a506.jpg"/>
D, typical or custom installation. Here I choose the first typical installation, next.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/45/wKioL1QpAGuTqnPpAAFunO6xVzI757.jpg "title=" 10.png "alt=" Wkiol1qpagutqnppaafuno6xvzi757.jpg "/>
E, the path to their own set of address, must be in English, do not put in the website address inside Oh!
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/43/wKiom1QpAIbg01BFAAEwnM4KYvo298.jpg "title=" 11.png "alt=" Wkiom1qpaibg01bfaaewnm4kyvo298.jpg "/>
F, installation Install
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/45/wKioL1QpAXGB_bEQAAErWk8XQvI639.jpg "style=" float: none; "title=" 12.png "alt=" Wkiol1qpaxgb_beqaaerwk8xqvi639.jpg "/>
G, start the installation, please wait patiently.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4B/43/wKiom1QpAUeh4fimAAFBYTcdkNQ734.jpg "title=" 13.png "Style=" Float:none; "alt=" wkiom1qpaueh4fimaafbytcdknq734.jpg "/>
H, installation complete, finish.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/43/wKiom1QpAXHyZi5tAAFnB2zVZ8c130.jpg "title=" 14.png "alt=" Wkiom1qpaxhyzi5taafnb2zvz8c130.jpg "/>
I, Apache service start, stop, restart
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4B/43/wKiom1QpAtmTU4R3AAHceIiJwK0264.jpg "title=" 15.png "alt=" Wkiom1qpatmtu4r3aahceiijwk0264.jpg "/>
To some Apache installation completed.
Third, use Apache to build reverse proxy under Windows
1. Install Apache and enable it to work properly
2. Open httpd.conf, find the following module and enable it (if not, you can add it yourself)
Mod_proxy.so (Module_proxy)
Mod_proxy_http.so (Module_proxy_http)
Mod_cache.so (Module_cache)
Mod_disk_cache.so (Module_disk_cache)
3, refer to the following VirtualHost section, to set:
<virtualhost *:8081>
ServerName 10.75.123.1//local server intranet address
Proxypass/test Http://10.75.123.1:8080/test
Proxypassreverse/test Http://10.75.123.1:8080/test
Proxypass/testm http://10.75.123.2:8089/testm
Proxypassreverse/testm http://10.75.123.2:8089/testm
#下面这几段可以加也可不加, look at the demand
# cacheroot "d:/apache_cache/"
# cacheenable Disk/images/
# cachedirlevels 2
# cachedirlength 1
</VirtualHost>
where Proxypass and Proxypassreverse represent the original address, CacheRoot is the cache directory, and it needs to be built on its own, assigning NTFS permissions to the user who is hosting the Apache process. The first parameter after cacheenable disk means to cache with disks,/images/represents the directories that need to be cached, and if set directly to/, may cause dynamic scripts to be cached, it loses its own meaning. You can add multiple cacheenable to cache multiple directories. Cachedirlevels and cachedirlength generally do not need to be modified, which represents the series and directory name lengths of the data directories in the cache directory.
Web Access to the domain name or IP address of the public network, the above Apache is used 8081 of the port, then the external network to 8081 of the port to access. For example, the public network address is 221.224.89.220, the open port is 8081, and the access is as follows:
Http://221.224.89.220:8081/test
This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source http://meiling.blog.51cto.com/6220221/1559416
Install Apache in Windows environment and use Apache to build a reverse proxy