Compdigitec Labs

« | Home | »

Setting up a HTTP Gateway on Ubuntu 10.04

By admin | August 11, 2010

An HTTP gateway is one of the ways that one can host multiple sites using only one external IP. The way that it works is that the user requests the page from the gateway and specifies which host was requested. The gateway server then forwards the request to the appropriate web server, which then returns the result to the gateway server, and the gateway server returns the result transparently to the user. This is a much better way to do multiple domains without having to purchase additional static IP address for the purpose of hosting websites.


Install packages apache2, libapache2-mod-proxy-html:

sudo apt-get install apache2 libapache2-mod-proxy-html


  1. Enable the the Apache mod_proxy as it is not enabled by default:
    sudo a2enmod proxy_http
  2. Add a reverse proxy pass to the configuration. Open /etc/apache2/sites-available/default with your favourite text editor and add the following text:
    <VirtualHost *:80>
        <Proxy *>
         Order Deny,Allow
         Allow from all
     ProxyRequests Off
     ProxyPass /
     ProxyPassReverse /

    Replace with your own domain name, and replace with the internal IP address of your server (keep the http:// portion).

  3. Restart Apache 2:
    sudo /etc/init.d/apache2 restart
  4. Using your hosting provider’s DNS tool, point your domain name ( to your public IP.
  5. You’re done! To test, visit your domain name and it should bring you the website on your internal server.

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: HTTP (Internet), Linux | 9 Comments »

9 Responses to “Setting up a HTTP Gateway on Ubuntu 10.04”

  1. Reverse proxy HTTPS with Apache at Compdigitec Labs Says:
    August 23rd, 2013 at 16:34

    […] procedure is mostly similar to the procedure with regular HTTP, but there are a few gimmicks involved […]

  2. cvv shop high balance Says:
    September 2nd, 2021 at 03:29

    … [Trackback]

    […] Read More Information here on that Topic: […]

  3. Darknet Anleitungen Says:
    September 15th, 2021 at 06:40

    … [Trackback]

    […] Read More Information here on that Topic: […]

  4. buy dumps online 2021 Says:
    October 24th, 2021 at 06:01

    … [Trackback]

    […] Read More on that Topic: […]

  5. sagame Says:
    November 12th, 2021 at 22:36

    … [Trackback]

    […] Info to that Topic: […]

  6. Says:
    November 16th, 2021 at 10:34

    … [Trackback]

    […] Find More Information here to that Topic: […]

  7. bettilt giris Says:
    December 10th, 2021 at 13:05

    … [Trackback]

    […] Information on that Topic: […]

  8. kardinal stick Says:
    December 18th, 2021 at 19:01

    … [Trackback]

    […] Information on that Topic: […]

  9. relx Says:
    January 17th, 2022 at 20:53

    … [Trackback]

    […] Info on that Topic: […]