Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Virtual Hosts with IIS

Status
Not open for further replies.

burbeck

Programmer
Aug 8, 2008
1
CA
Here is my situation: I have 1 webserver with Apache & IIS. I have 1 domain (mydomain.com). The reason I have IIS is because I have some ASPs I want to host. Now I'm wondering how to configure Apache to redirect to IIS if it is on a certain subdomain (ie. sub1.mydomain.com) otherwise I will use Apache to process. Now I have setup my virtual hosts to redirect to port 90 for IIS but the problem is that I redirect via a IP (192.168.1.200:90) and it all works fine on my local network but not from the outside. Is there something I'm missing? or is this even possible?

 
There is no way to make apache do what you want. That is not to say it can't be done another way. I have never tried anything like this so there may be a better way but my idea is to use a dns pointer service like dns2go or dyndns. These services are used by people who want to run a server but have a dynamic ip or have port 80 blocked by their isp. You simply create an account with them, choose a subdomain name and let them know what port your server listens on. Now when somebody types that name into their browser, they will be directed to your current ip address and what ever server is listening on port 90 or whatever you choose will be the one to answer the request.
 
can't you redirect to the external IP of the IIS server?

Its the browser that will get the redirect and anyone on the internet won't be able to redirect to your internal 192. address.

so as long as you have 2 external addresses:

x.x.x.x points to 192.168.1.200:80 (Apache)
y.y.y.y points to 192.168.1.201:80 iis.example.com (IIS)

If you have 2 internal addresses bound to the same NIC then you can use port 80 for both (if you want) just make sure they are binded to an address each, this way you don't need a redirect (but you can) and you can just use the iis.example.com to server up your asp.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top