Version 4 (modified by Cas, 8 years ago) (diff)

--

Reverse Proxy with Deluge WebUI

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.

For the examples below a web server is already serving on http://example.net, and we want it to serve the WebUI on http://example.net/deluge.

We are running the Deluge WebUI, deluge-web, on localhost which by default serves on port 8112.

Apache Config:

Enable the following apache modules

a2enmod proxy
a2enmod proxy_html
a2enmod proxy_http
a2enmod headers

And add the following to your .conf file:

ProxyPass /deluge http://localhost:8112/

<Location /deluge>
    ProxyPassReverse /
    ProxyPassReverseCookiePath / /deluge               
    RequestHeader set X-Deluge-Base "/deluge/"          
    Order allow,deny
    Allow from all
</Location>
Nginx Config:
location /deluge {
    proxy_pass              http://localhost:8112/;
    proxy_set_header        X-Deluge-Base "/deluge/";
    include                 proxy-control.conf;
}
WebUI base Option:

If you cannot configure your server with the RequestHeader, you can either set the base value in the web.conf file or run deluge-web with the --base argument to achieve the same effect:

 deluge-web --base /deluge/