Install Apache in Windows environment and use Apache to build reverse proxy

Source: Internet
Author: User
Tags sha1 ntfs permissions

First, configure Apache platform software

1. Download Apache software 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, here we download stable version of httpd 2.2.29 for example, click Download.

650) this.width=650; "src=" "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=" "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=" "title=" 3.png " alt= "Wkiol1qo-j6dh5htaaoesemy3zq100.jpg"/>

2.4, click Win32 can.

650) this.width=650; "src=" "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=" "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=" "title=" 6.png " alt= "Wkiom1qo_wjrum9eaag2dl0tuak184.jpg"/>

B, agreement, agree, click Next.

650) this.width=650; "src=" "title=" 7.png " alt= "Wkiom1qo_epdr0m8aaiao32bidk753.jpg"/>

Click Next

650) this.width=650; "src=" "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,, the first line to write, the second line to write; 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=" "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=" "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=" "title=" 11.png "alt=" Wkiom1qpaibg01bfaaewnm4kyvo298.jpg "/>

F, installation Install

650) this.width=650; "src=" "style=" float: none; "title=" 12.png "alt=" Wkiol1qpaxgb_beqaaerwk8xqvi639.jpg "/>

G, start the installation, please wait patiently.

650) this.width=650; "src=" "title=" 13.png "Style=" Float:none; "alt=" wkiom1qpaueh4fimaafbytcdknq734.jpg "/>

H, installation complete, finish.

650) this.width=650; "src=" "title=" 14.png "alt=" Wkiom1qpaxhyzi5taafnb2zvz8c130.jpg "/>

I, Apache service start, stop, restart

650) this.width=650; "src=" "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) (Module_proxy) (Module_proxy_http) (Module_cache) (Module_disk_cache)

3, refer to the following VirtualHost section, to set:

<virtualhost *:8081>

ServerName server intranet address

Proxypass/test Http://

Proxypassreverse/test Http://



#下面这几段可以加也可不加, look at the demand

# cacheroot "d:/apache_cache/"

# cacheenable Disk/images/

# cachedirlevels 2

# cachedirlength 1


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, the open port is 8081, and the access is as follows:


This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source

Install Apache in Windows environment and use Apache to build a reverse proxy

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: 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.