Use apache Proxy to implement nat technology-php Tutorial

Source: Internet
Author: User
Using apache Proxy to implement nat technology I configured iis websites and apache websites in the form of dual-LAN ip addresses on the server,
For example, if iis uses 192.168.3.114: 80 and apache uses 192.168.3.115: 80
So I want to use apache's reverse proxy to redirect the user to 192.168.3.115: 80 when accessing port 8080 of the Internet ip address.
How to write a VM?
Below are some of my own code. how can I change it? Please give me your opinion!

NameVirtualHost *


ServerName www.h.com
ProxyPass/http: // 192.168.3.115/
ProxyPassReverse/http: // 192.168.3.115/


Reply to discussion (solution)

Apache cannot be started. once the same port in a computer is occupied, it cannot be allocated to other programs unless the first program is closed and the second program is enabled.
================================
Follow your ideas
Solution
Apache assigns port 90
==============================
Also, you can divide the Internet and intranet. So there must be a vro. You can directly specify the IP port on the vro without a proxy.

1. if IIS and APZCHE are two different servers, and one of them is exposed in the outer network, you can leave it alone. ,
2. if IIS and apche are on the same intranet and the same server, but the server has multiple NICs, this can be solved in the way I mentioned above.
So. First, you need to clearly describe the environment.
======================================

1. if IIS and APZCHE are two different servers, and one of them is exposed in the outer network, you can leave it alone. ,
2. if IIS and apche are on the same intranet and the same server, but the server has multiple NICs, this can be solved in the way I mentioned above.
So. First, you need to clearly describe the environment.
======================================

Yes. one has configured static nat, and the other is a virtual host created on the local machine using apache. it has been assigned an ip address and port 80 is also used, access is available on the intranet. The environment is iis5.0 and windows server 2008.

Take a closer look
Set apache reverse proxy iis and multiple domain names
Coexistence of port 80 of apache Proxy IIS

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.