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