Wednesday, February 9, 2011

mod_proxy in ubuntu

In order to get mod_proxy running in ubuntu I had to:
  • ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy.conf
  • ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load
  • ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load
Then in my conf file (sites-enabled/my-site) I added between the VirtualHost tag

<proxy>
Order deny,allow
Allow from all
</proxy>

<location /pickup >
ProxyPass http://qa-ox3-datamart-xv-01.xv.dc.openx.org/pickup/
ProxyPassReverse http://qa-ox3-datamart-xv-01.xv.dc.openx.org/pickup/
</location>

Delete a remote branch in git

git push origin :branchname