"port forwarding": redirect calls to webservice at port 8081 to port 80

Posted by niba on Stack Overflow See other posts from Stack Overflow or by niba
Published on 2010-05-31T13:13:53Z Indexed on 2010/05/31 13:33 UTC
Read the original article Hit count: 617

Hi,

a colleague of mine wrote a webservice that runs on port 8081 of our Windows 2008 Server. He uses the class ServiceHost, afaik this means its a standalone host (no IIS or ASP involvement). Note: I'm new into WCF ;)

Now there are some issues with clients behind a firewall blocking the requests to remote port 8081 of our server (where the webservice runs). The easiest solution would be: run the webservice host at port 80 ... But: there is also a Apache 2.2 webserver running on the Windows Server, hosting some websites. By default it runs on port 80.

My solution after some researching: use a virtual host to route requests to a virtual host (lets say http://webservice.[hostname]:80) to the webservice host (http://[hostname]:8081).

Is this a good idea? Can Apache handle forwards to standalone webservice hosts? It would be nice if someone could lead me on to the right track :)

Best regards, Niels

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf