Apache Webproxy

Aus Xinux Wiki
Version vom 13. August 2025, 08:26 Uhr von Thomas.will (Diskussion | Beiträge) (→‎Install and activate)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

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>

Links