====== Apache2 als Reverse-Proxy ======
siehe auch: [[apache]], [[apache-ssl]]
Reverse Proxies are good for:
  * Application Delivery including:Load Balancing (TCP Multiplexing)
  * SSL Offload/Acceleration (SSL Multiplexing)
  * Caching
  * Compression
  * Content Switching/Redirection
  * Application Firewall
  * Server Obfuscation
  * Authentication
  * Single Sign On
===== Pakete =====
==== debian ====
apache2 
===== Proxy einschalten =====
  a2enmod proxy_http
===== Konfigurieren =====
''/etc/apache2/sites-available/proxy.notebook24.linuxhotel.de'' : (Debian 5.0)
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.
        ProxyRequests Off
        ProxyPass / http://www.naturnah.de/
        ProxyPassReverse / http://www.naturnah.de/
        
                Order deny,allow
                Allow from all
        
        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block
        ProxyVia On
  a2ensite proxy.notebook24.linuxhotel.de
  /etc/init.d/apache2 force-reload
====== Apache2 hinter Reverse-Proxy ======
  # erst in Apache 2.4:
  #ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i"
  ErrorLog  /var/log/apache2/webapp.error_log
  LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_forward
  CustomLog /var/log/apache2/webapp.access_log combined_forward
====== Doku ======
  * https://nitstorm.github.io/blog/apache-forward-reverse-proxies-1/