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
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?
Reverse Proxy Apache Windows - Odd Loading of WebUI
Re: Reverse Proxy Apache Windows - Odd Loading of WebUI
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.
Re: Reverse Proxy Apache Windows - Odd Loading of WebUI
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?
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?
-
- New User
- Posts: 3
- Joined: Tue Feb 21, 2017 9:06 pm
Re: Reverse Proxy Apache Windows - Odd Loading of WebUI
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 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:
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:
This did require me to install mod_subsitute on Apache
Try
Code: Select all
ProxyPass /deluge http://localhost:8112
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:
Further details on my setup: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)
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/
Code: Select all
sudo a2enmod substitute