User Tools

Site Tools


apache_2_reverse_proxying
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


apache_2_reverse_proxying [2014/11/24 01:14] (current) – created 0.0.0.0
Line 1: Line 1:
 +====== Apache_2_Reverse_Proxying ======
  
 +This article will discuss using virtual hosts to allow multiple machines - each with their own domain name (or subdomain) - to be accessed externally on one public IP address, while remaining on port 80, by having one machine proxy requests to the rest by reading the HTTP <code>Host:</code> request header.
 +
 +===== Ubuntu =====
 +==== Installation ====
 + a2enmod proxy
 + a2enmod proxy_http
 +
 +==== Basic Configuration File ====
 +I recommend creating a new "site" (i.e. a file in /etc/apache2/sites-available/) for each machine that will be proxied.  This seems to be the new Ubuntu/Debian way of configuring Apache.  So start by creating and editing a new file, e.g. /etc/apache2/sites-available/foo
 +NameVirtualHost modsec.atuin.lorddeath.net
 +<VirtualHost modsec.atuin.lorddeath.net>
 +        ServerName modsec.atuin.lorddeath.net
 +
 +        ErrorLog /var/log/apache2/error.atuinmodsec.log
 +        # Possible values include: debug, info, notice, warn, error, crit,
 +        # alert, emerg.
 +        LogLevel warn
 +        CustomLog /var/log/apache2/access.atuinmodsec.log combined
 +        ServerSignature On
 +
 +        ProxyRequests Off
 +        ProxyPass / http://atuinmodsec/
 +        ProxyPassReverse / http://atuinmodsec/
 +
 +        <Proxy *>
 +                Order deny,allow
 +                Allow from all
 +        </Proxy>
 +</VirtualHost>
 +
 +==== Things To Note ====
 +  * On Ubuntu/Debian, there will
apache_2_reverse_proxying.txt · Last modified: by 0.0.0.0

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki