Version 1 (modified by bro, 6 years ago) (diff)

Frist

Serving Deluge WebUI through a reverse proxy

If you have a webserver running and want the Deluge WebUI to be served through this server, you can set up your web server to work as a reverse proxy.

In this example we have an apache server serving on http://127.0.0.1, and want it to serve the WebUI on http://127.0.0.1/deluge

Are running the Deluge WebUI on an internal host with IP 192.168.1.200 which by default serves on port 8112

 deluge-web -d -i 192.168.1.200

Add this to the apache config:

ProxyPass /deluge http://192.168.1.200:8112/                                                                                                                                                                      
                                                                                                                                                                                                                   
 <Location /deluge>                                                                                                                                                                                                
     ProxyPassReverse /                                                                                                                                                                                            
     ProxyPassReverseCookiePath / /deluge                                                                                                                                                                          
     RequestHeader set X-Deluge-Base "/deluge/"                                                                                                                                                                    
     Order allow,deny                                                                                                                                                                                              
     Allow from all                                                                                                                                                                                                
 </Location>

If you cannot configure your server to use the RequestHeader?, you can run deluge-web with the --base argument to achieve the same:

 deluge-web -d -i 192.168.1.200 --base /deluge/