From b8a6c33318d2e2645630de055da726f7479b2589 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 9 Apr 2020 13:22:14 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 66 +++++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 406dd3d..3ddec4b 100644 --- a/README.md +++ b/README.md @@ -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} - 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 / 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 / - + ProxyPreserveHost On + ProxyPass http://localhost:8080/ + ProxyPassReverse http://localhost:8080/ + ProxyHTMLURLMap / + 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 - + 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 + + + CustomLog /var/log/apache2/video.domain.tld.log combined + ErrorLog /var/log/apache2/video.domain.tld.error.log ```