Reverse Proxy Apache Windows - Odd Loading of WebUI

General support for problems installing or using Deluge
Magic815
Member
Member
Posts: 10
Joined: Wed Oct 14, 2015 12:26 pm
OS or Distro: Windows 8.1, 64 bit

Reverse Proxy Apache Windows - Odd Loading of WebUI

Postby Magic815 » Fri Aug 12, 2016 5:10 pm

So I'm currently trying to set up a reverse proxy with Apache for Deluge.

I've already followed the wiki found here: http://dev.deluge-torrent.org/wiki/User ... verseProxy

But when I go to: http://[mydyndnshostname]/deluge, the WebUI works, but renders in an odd way:
https://picload.org/image/rrclgcpl/2016 ... ge_web.png
Image

The page looks the same in Chrome, Firefox, and IE. And it's the same result whether I go to:
localhost/deluge
[localIP]/deluge
[mydyndnshostname]/deluge


Some further info:
Windows 8.1, 64 bit
Deluge 1.3.13
WebUI is activated via the plugin panel in deluge (I don't run deluge-web.exe)


Any thoughts?

Cas
Top Bloke
Top Bloke
Posts: 3442
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Reverse Proxy Apache Windows - Odd Loading of WebUI

Postby Cas » Sun Aug 14, 2016 11:14 am

Use the browser dev tools to check for errors but looks like misconfigured apache config, double check you have the details from the wiki correct.

Magic815
Member
Member
Posts: 10
Joined: Wed Oct 14, 2015 12:26 pm
OS or Distro: Windows 8.1, 64 bit

Re: Reverse Proxy Apache Windows - Odd Loading of WebUI

Postby Magic815 » Wed Aug 17, 2016 1:25 pm

I double checked the wiki, and it seems like I followed everything exactly. Could you elaborate on the 'browser dev tools'?

Although, I've been meaning to switch over to Caddy as it seems like it can handle SSL much easier than Apache. Do you have any experience with Caddy? Is there anyway the wiki could be updated with a Caddy section?

Sahasrahla
New User
New User
Posts: 3
Joined: Tue Feb 21, 2017 9:06 pm
OS or Distro: Ubuntu 16.10

Re: Reverse Proxy Apache Windows - Odd Loading of WebUI

Postby Sahasrahla » Tue Oct 10, 2017 3:08 am

EDIT: I think I got this working by simply removing the trailing slash from the ProxyPass line of config mentioned in the wiki. I did a bunch of other stuff that I thought maybe did the trick, but then I undid all the other stuff and just removed the trailing slash, and it's still working.

Try

Code: Select all

ProxyPass /deluge http://localhost:8112
and of course everything else on this wiki article.

Below is my original post, and my additional steps I thought were resolving the issue...

==================================================================================================



I'm in the same boat as Magic815. I found these errors in my browser:

deluge.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
ext-extensions.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
ext-all-notheme.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
s.gif Failed to load resource: the server responded with a status of 500 (Internal Server Error)
deluge/icons/deluge.png Failed to load resource: the server responded with a status of 500 (Internal Server Error)
deluge/icons/deluge.png Failed to load resource: the server responded with a status of 500 (Internal Server Error)
ext-extensions.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
deluge.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)
ext-all-notheme.css Failed to load resource: the server responded with a status of 500 (Internal Server Error)


Further details on my setup:
I have normal web traffic going to a Ubuntu LAMP server, and I'm doing the Reverse Proxy setup on that. Deluge actually runs on a Windows server on my LAN, and a non-standard port. If I open http://brainiac-plex:12345 locally it works properly. If I open http://mydomain.com/deluge it loads as Magic815's screenshot (and the errors I posted above).

I actually got my reverse proxy working by following themadweaz's advise in this reddit thread with one exception. I had to remove the trailing slash from the main deluge ProxyPass... My Apache config (relevant to this issue) now looks like this:

Code: Select all

                ProxyPass "/deluge" "http://brainiac-plex:12345"
                <Location /deluge>
                        ProxyPassReverse /
                        ProxyPassReverseCookiePath / /deluge
                        RequestHeader set X-Deluge-Base "/deluge/"
                        Order allow,deny
                        Allow from all
                        AddOutputFilterByType SUBSTITUTE text/html
                        Substitute "s|deluge/css/|garbage/css/|i"
                        Substitute "s|deluge/icons/|garbage/icons/|i"
                        Substitute "s|deluge/images/|garbage/images/|i"
                        Substitute "s|deluge/themes/|garbage/themes/|i"
                </Location>
                ProxyPass /garbage/css/ http://brainiac-plex:12345/css/
                ProxyPassReverse /garbage/css/ http://brainiac-plex:12345/css/

                ProxyPass /garbage/icons/ http://brainiac-plex:12345/icons/
                ProxyPassReverse /garbage/icons/ http://brainiac-plex:12345/icons/

                ProxyPass /garbage/images/ http://brainiac-plex:12345/images/
                ProxyPassReverse /garbage/images/ http://brainiac-plex:12345/images/

                ProxyPass /garbage/themes/ http://brainiac-plex:12345/themes/
                ProxyPassReverse /garbage/themes/ http://brainiac-plex:12345/themes/


This did require me to install mod_subsitute on Apache

Code: Select all

sudo a2enmod substitute


Return to “Support”

Who is online

Users browsing this forum: No registered users and 4 guests