Pages

Friday, February 12, 2010

Reverse proxy in apache 2 karmic koala

It turn out to enable reverse proxy in apache 2 is very simple. All you have to do is enable 2 module using this command :

> sudo a2enmod proxy
> sudo a2enmod proxy_http

modify the virtual host for your sample, the default is in /etc/apache2/sites-enabled/000-default

add this 2 lines for each of your context
ProxyPass /itsme/ http://www.mysite.net:8080/itsme/
ProxyPassReverse /itsme/ http://www.mysite.net:8080/itsme/

restart the apache server using
> sudo /etc/init.d/apache2 restart

and its done :D

~FD

No comments: