Apache Webproxy: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) Die Seite wurde neu angelegt: „=Install and activate= *apt-get install libapache2-mod-proxy-html *a2enmod proxy proxy_http *service apache2 reload =Links= *http://krausix.de/apache-reverse-…“ |
|||
| (2 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
=Install and activate= | =Install and activate= | ||
*a2enmod proxy proxy_http | *a2enmod proxy proxy_http | ||
*service apache2 reload | *service apache2 reload | ||
=Example= | |||
<pre> | |||
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> | |||
</pre> | |||
=Links= | =Links= | ||
*http://krausix.de/apache-reverse-proxy-mod_proxy/ | *http://krausix.de/apache-reverse-proxy-mod_proxy/ | ||
Aktuelle Version vom 13. August 2025, 08:26 Uhr
Install and activate
- 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>