mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	docs: add reverse proxy configuration for Apache (#6625)
This commit is contained in:
		
							parent
							
								
									965281346f
								
							
						
					
					
						commit
						5f051e3104
					
				@ -38,3 +38,29 @@ immich.example.org {
 | 
			
		||||
    reverse_proxy http://<snip>:2283
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Apache example config
 | 
			
		||||
 | 
			
		||||
Below is an example config for Apache2 site configuration.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
<VirtualHost *:80>
 | 
			
		||||
    ServerName <snip>
 | 
			
		||||
 | 
			
		||||
    ProxyRequests off
 | 
			
		||||
    ProxyVia on
 | 
			
		||||
 | 
			
		||||
    RewriteEngine On
 | 
			
		||||
    RewriteCond %{REQUEST_URI}  ^/api/socket.io            [NC]
 | 
			
		||||
    RewriteCond %{QUERY_STRING} transport=websocket    [NC]
 | 
			
		||||
    RewriteRule /(.*)           ws://localhost:2283/$1 [P,L]
 | 
			
		||||
 | 
			
		||||
    ProxyPass        /api/socket.io ws://localhost:2283/api/socket.io
 | 
			
		||||
    ProxyPassReverse /api/socket.io ws://localhost:2283/api/socket.io
 | 
			
		||||
 | 
			
		||||
    <Location />
 | 
			
		||||
        ProxyPass http://localhost:2283/
 | 
			
		||||
        ProxyPassReverse http://localhost:2283/
 | 
			
		||||
    </Location>
 | 
			
		||||
</VirtualHost>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user