„README.md“ ändern
This commit is contained in:
parent
11ce3002b4
commit
4d673a40c9
66
README.md
66
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}
|
||||
|
||||
</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>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user