mirror of
				https://github.com/open-webui/docs
				synced 2025-06-16 11:28:36 +00:00 
			
		
		
		
	Merge pull request #199 from semidark/patch-1
Add WebSocket Support to Apache documentation
This commit is contained in:
		
						commit
						502600e88a
					
				@ -27,6 +27,10 @@ For the UI configuration, you can set up the Apache VirtualHost as follows:
 | 
				
			|||||||
    ProxyPass / http://server.com:3000/ nocanon
 | 
					    ProxyPass / http://server.com:3000/ nocanon
 | 
				
			||||||
    ProxyPassReverse / http://server.com:3000/
 | 
					    ProxyPassReverse / http://server.com:3000/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    RewriteEngine on
 | 
				
			||||||
 | 
					    RewriteCond %{HTTP:Upgrade} websocket [NC]
 | 
				
			||||||
 | 
					    RewriteCond %{HTTP:Connection} upgrade [NC]
 | 
				
			||||||
 | 
					    RewriteRule ^/?(.*) "ws://server.com:3000/$1" [P,L]
 | 
				
			||||||
</VirtualHost>
 | 
					</VirtualHost>
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -48,6 +52,11 @@ _Normally, mod_proxy will canonicalise ProxyPassed URLs. But this may be incompa
 | 
				
			|||||||
    ProxyPass / http://server.com:3000/ nocanon
 | 
					    ProxyPass / http://server.com:3000/ nocanon
 | 
				
			||||||
    ProxyPassReverse / http://server.com:3000/
 | 
					    ProxyPassReverse / http://server.com:3000/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    RewriteEngine on
 | 
				
			||||||
 | 
					    RewriteCond %{HTTP:Upgrade} websocket [NC]
 | 
				
			||||||
 | 
					    RewriteCond %{HTTP:Connection} upgrade [NC]
 | 
				
			||||||
 | 
					    RewriteRule ^/?(.*) "ws://server.com:3000/$1" [P,L]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SSLEngine on
 | 
					    SSLEngine on
 | 
				
			||||||
    SSLCertificateFile /etc/ssl/virtualmin/170514456861234/ssl.cert
 | 
					    SSLCertificateFile /etc/ssl/virtualmin/170514456861234/ssl.cert
 | 
				
			||||||
    SSLCertificateKeyFile /etc/ssl/virtualmin/170514456861234/ssl.key
 | 
					    SSLCertificateKeyFile /etc/ssl/virtualmin/170514456861234/ssl.key
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user