Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
orga:2020:lxc [2020/06/26 10:48] svelt angelegt |
orga:2020:lxc [2021/04/16 17:30] (aktuell) svelt Redirect im Apache-RevProxy leicht angepasst |
||
---|---|---|---|
Zeile 24: | Zeile 24: | ||
bridge_ports | bridge_ports | ||
- | bridge_maxwait | + | bridge_maxwait |
+ | | ||
up /sbin/ip link set up dev br-lxc | up /sbin/ip link set up dev br-lxc | ||
Zeile 308: | 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 | ||
+ | </ |