Using the Apache proxy to implement NAT technology

Source: Internet
Author: User
I configured the IIS Web site and the Apache Web site in the form of a dual LAN IP on the server, respectively.
such as IIS using IP is 192.168.3.114:80,apache using IP is 192.168.3.115:80
Then I want to use Apache reverse proxy to enable users to access the 8080 port of the extranet IP when the switch to 192.168.3.115:80
How does a virtual host write?
Here are some of my own code to write, how to change? Ask the great God for advice!

Namevirtualhost *


ServerName www.h.com
proxypass/http://192.168.3.115/
proxypassreverse/http://192.168.3.115/


Reply to discussion (solution)

Apache you absolutely can't boot up, after the same port in a computer is occupied, it cannot be assigned to another program unless you close the first program and then enable the second program.
====================
According to your thinking
Workaround
Apache allocates 90 ports
===================
Also, you are particularly network and intranet. Then there must be a router. Specify the IP port directly on the router, without proxy

1. If IIS and Apzche are two different servers, and one of them is exposed to the outside network, it can be another matter. 、
2. If IIS and Apche in the same intranet, the same server, just the server has more than one network card, this can be the way I said above to solve
So. You must describe the environment first.
=========================

1. If IIS and Apzche are two different servers, and one of them is exposed to the outside network, it can be another matter. 、
2. If IIS and Apche in the same intranet, the same server, just the server has more than one network card, this can be the way I said above to solve
So. You must describe the environment first.
=========================

This is the case, a static NAT has been set up, and the other is on this machine with Apache-built virtual host, has been assigned to the IP, the same is the use of 80 port, in the intranet has been able to access. Environment is iis5.0 and Windows Server 2008

Please take a careful look at
Let Apache reverse proxy IIS and multi-domain settings
Apache Agent IIS 80-port implementation coexistence

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