/ Apache

Enabling http proxy module in Apache on Ubuntu

The Apache proxy module is disabled by default in Ubuntu. Having unused modules enabled has both performance and security implications. That said, in this example we are using:

  • Apache 2.2
  • Ubuntu 12.04 LTS

Ubuntu ships with a nifty helper utility for enabling Apache modules without any fancy text/sed file modification.

# enabling modules
sudo a2enmod proxy proxy_http
sudo service apache2 restart

Disabling modules is just as simple.

# disabling modules
sudo a2dismod proxy_http
sudo a2dismod proxy
sudo service apache2 restart