Archive

Posts Tagged ‘reverse proxy’

Reverse proxy

March 10th, 2010 admin No comments

The situation:

At home I’m running a Windows 2008 server (Exchange 2007 and mostly file sharing) that is also hosting two virtualized Debian environments: webserver and mail server.

As all HTTP trafic is serviced by the Debian machine, I had to figure out a way to forward all the traffic for www.elconsultancy.nl to this 2K8 machine (running IIS). Why…trying to make my first steps into the SilverLight world.

The solution:

As most stuff also this could be handled really easy by using the reverse proxy. Two steps to handle this:

1) Edit the Virtual Hosts file:

<VirtualHost 192.168.50.80:80>

ServerName www.elconsultancy.nl

ProxyRequests Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyPass / http://192.168.50.1/

ProxyPassReverse / http://192.168.50.1/

</VirtualHost>

2) Enable the proxy module:

a2enmod proxy_http

Yeah, it really is that easy !

Categories: Debian Tags: , ,