Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
orga:2020:lxc [2020/10/12 15:20] ralphgl Fehlenden Zeilenumbruch eingefügt |
orga:2020:lxc [2021/04/16 17:30] (aktuell) svelt Redirect im Apache-RevProxy leicht angepasst |
||
---|---|---|---|
Zeile 309: | Zeile 309: | ||
</ | </ | ||
+ | ===== Reverse Proxy ===== | ||
+ | Laufen in den LXC-Containern Web-Anwendungen, | ||
+ | |||
+ | <file - / | ||
+ | < | ||
+ | < | ||
+ | |||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride None | ||
+ | Require all granted | ||
+ | </ | ||
+ | ServerName subdom.lusc.de | ||
+ | ServerAlias www.subdom.lusc.de | ||
+ | ServerAdmin webmaster@localhost | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | < | ||
+ | Protocols h2 http/1.1 | ||
+ | </ | ||
+ | |||
+ | SSLEngine on | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | SSLCertificateChainFile / | ||
+ | |||
+ | SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 | ||
+ | SSLCipherSuite EECDH+AESGCM: | ||
+ | SSLHonorCipherOrder On | ||
+ | |||
+ | SSLSessionTickets Off | ||
+ | |||
+ | ProxyPreserveHost On | ||
+ | RequestHeader unset X-Forwarded-For | ||
+ | RequestHeader set X-Forwarded-Proto https | ||
+ | |||
+ | ProxyPass / | ||
+ | ProxyPassReverse / | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride None | ||
+ | Require all granted | ||
+ | </ | ||
+ | ServerName subdom.lusc.de | ||
+ | ServerAlias www.subdom.lusc.de | ||
+ | ServerAdmin webmaster@localhost | ||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | < | ||
+ | Protocols h2c http/1.1 | ||
+ | </ | ||
+ | |||
+ | <If " | ||
+ | Redirect / | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | # vim: syntax ft=apache noet | ||
+ | </ |