Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been struggling with some routing problem for a while now, and can't seem to get any way with it.

My setup:

  • Windows Server 2008
  • 1 NIC w/ 2 IP addresses
  • VirtualBox VM, w/ Ubuntu Server (LAMP config)

I would like to route all traffic on a specific domainname @ port 80, to my VirtualBox VM. Seems like port 80 is already catched by IIS 7.5 (WIndows), so the call never gets to my VM. However; I did manage to get it work using a non-default port like :8080 , but that's not gonna do it for me.

If this isn't possible; Can I route all traffic on IP-address # 2 instead?

How can this be done?

share|improve this question
Why are you using Virtualbox on Windows Server 2008? – MDMarra May 11 '12 at 13:56
up vote 1 down vote accepted

I would like to route all traffic on a specific domain name @ port 80

An education is in order - you can not do that. When the TCP connection is established, there is no domain name involved, only an IP address.

Virtual hosts distinguish by host header which is part of the HTTP request, but that can only be sent AFTER (!) the connection on the TCP level is established.

A router thus has no base to determine what the requested domain is, ergo it can not sue that.

Your best bet is a reverse proxy. IIS is totally able to do that (at last on 2008 R2).

YOu need the Application Request Routing module:

THen you can tell IIS to forward calls for a specific domain to another server.

share|improve this answer
Thanks for your answer TomTom! Will using IIS as such an reverse proxy have any performance impact on the server or website ? – MikalBen May 11 '12 at 10:45
It will add some small latency and obviously processing overhead. But any solution will -and I doubt, if you run that in the way oyou describe - that you are a high scale website to start with. Try it out. – TomTom May 11 '12 at 12:29
hehe - true! :-) – MikalBen May 11 '12 at 12:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.