Ubuntu forward proxy with mod_proxy

  1. apt-get install libapache2-mod-proxy-html
  2. a2enmod proxy_html
  3. cp /etc/apache2/sites-available/default /etc/apache2/sites-available/proxy
  4. put in a custom port, and the following:

    ProxyRequests On
    ProxyVia On

    Order deny,allow
    Deny from all
    Allow from [hostname or IP]

  5. put the following at the bottom of ports.conf:

    Listen [your port]
  6. create some symlinks:
    cd /etc/apache2/mods-enabled/
    ln -s ../mods-available/proxy.load
    ln -s ../mods-available/proxy_http.load
  7. restart apache
    service apache2 restart
  8. you should now be able to use the proxy server

Leave a Reply

Your email address will not be published. Required fields are marked *