I did some crazy stuff with ProxyPass in my development environment like:
Setting up a reverse proxy using Apache in Ubuntu:
1. Install reverse_proxy module
sudo apt-get install libapache2-mod-proxy-html
2. Install libxml if it is not already installed.
apt-get install libxml2-dev
3. Load the modules in apache2.conf file
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
LoadFile /usr/lib/libxml2.so
4. Say you want to forward all requests starting with /foo to http://bar.com then add the following to your apache2.conf file
ProxyPass /foo/ http://bar.com/
5. Bounce Apache and you are good to go.
So far this the best I can do when it comes to preserving apache’s dominance of the port. But I haven’t been able to get the some naming out of the URL, because proxy pass actually wants /something as the ‘gateway’ to the destination.
Anyway, I am trying to get contact campaigns up online.
I am pretty sure this is like the second or third time this blog came up in my search results.
I like it.