Apache Webproxy: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
 
Zeile 3: Zeile 3:
 
*a2enmod proxy proxy_http
 
*a2enmod proxy proxy_http
 
*service apache2 reload
 
*service apache2 reload
=Examble=
+
=Example=
 
<pre>
 
<pre>
 
Listen 1234
 
Listen 1234

Aktuelle Version vom 18. Februar 2017, 15:50 Uhr

Install and activate

  • apt-get install libapache2-mod-proxy-html
  • a2enmod proxy proxy_http
  • service apache2 reload

Example

Listen 1234
<VirtualHost *:1234>
        ServerName mein.server.tld
        ServerAlias www.mein.server.tld
 
        ProxyPass / http://meine-anwendung/
        ProxyPassReverse / http://meine-anwendung/
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
        CustomLog /var/log/apache2/reverse-proxy_test_1234.log common
</VirtualHost>

Links