„README.md“ ändern

This commit is contained in:
Bernd Reuther 2020-04-09 13:22:14 +02:00
parent 80bd6524a2
commit b8a6c33318

View File

@ -116,61 +116,61 @@ Wir nutzen den Apache-Webserver mit folgenden Einstellungen (Servernamen als Bei
DocumentRoot /var/www/html/
SSLEngine off
SSLEngine off
RewriteEngine on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
<VirtualHost *:443>
ServerName video.domain.tld
ServerName video.domain.tld
SSLEngine on
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.tld/privkey.pem
DocumentRoot /var/www/html/
DocumentRoot /var/www/html/
ProxyRequests off
SetOutputFilter proxy-html
ProxyHTMLURLMap http://localhost:8080 /
SetOutputFilter proxy-html
ProxyHTMLURLMap http://localhost:8080 /
<Location "/">
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]
ProxyPreserveHost On
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
ProxyHTMLURLMap /
</Location>
ProxyPreserveHost On
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
ProxyHTMLURLMap /
</Location>
<Location "/admin">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.video-admin
Require valid-user
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:4242%{REQUEST_URI} [P]
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.video-admin
Require valid-user
ProxyPass http://localhost:4242/
ProxyHTMLURLMap http://localhost:4242/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:4242%{REQUEST_URI} [P]
CustomLog /var/log/apache2/video.domain.tld.log combined
ErrorLog /var/log/apache2/video.domain.tld.error.log
ProxyPass http://localhost:4242/
ProxyHTMLURLMap http://localhost:4242/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
CustomLog /var/log/apache2/video.domain.tld.log combined
ErrorLog /var/log/apache2/video.domain.tld.error.log
</VirtualHost>
```