Jump to content

Webui on server with apache installed


pronkax

Recommended Posts

Hi,

Is there a solution to filter the webui on header info ?

On de server on which I installed UTorrent I've also installed apache. I want ton run both the website and the webui on the port 80 because that's the only port my company allows outbound.

This is no problem if the webui would run on a webserver because you only have to give the webui a seperate dns name.

Is there maybe a way to run the webui on apache ?

Link to comment
Share on other sites

You can run the UI on another port, something like 3434.

Then you can use Apache to setup a reverse proxy (using mod_proxy), like I did:

ProxyPass /emule_admin http://localhost:65000
ProxyPassReverse /emule_admin http://localhost:65000

This way I can access my emule webadmin (running on port 65000), by opening http://my.webserver.on.port80/emule_admin

Link to comment
Share on other sites

I tried it but using proxy it stucks at the loading screen.

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

ProxyPass /utorrent http://localhost:40000
ProxyPassReverse /utorrent http://localhost:40000

I dunno why it doesn't work... maybe something goes wrong in the PassReverse

(yes I tried the readme request cookie thingy... didn't help)

Maybe a apache proxy setting u have DoubleJ?

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

Aha this works:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

ProxyPass /gui http://localhost:40000/gui
ProxyPassReverse /gui http://localhost:40000/gui

Replace the 40000 with your utorrent/webui port.

Stupid that I didn't think about it myself.

http://localhost/gui/

You have to use /gui

If you do not want to use /gui you'll have to replace all instances of /gui with your prefered word in the webui .js files.

Link to comment
Share on other sites

@dave__: That would most probably involve editing the contents of webui.zip

@PsychoKlown: I think XAMPP still uses the httpd.conf file which is located in the conf folder inside the apache install. Copy and paste the lines from the above CODE at the bottom of that file.

If u wanna keep your file neat search for the other LoadModule lines and place the LoadModule lines there. You might even find those exact lines with an # (disables the line (in fact it marks it as a comment)) in front of them u could replace those if you want. The Proxy stuv is still best placed at the bottom.

You have to restart apache to get it to load the new config file.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Yes I got the same proble. It will sho only loading screen. I know this root cause. For example.

ProxyPass /gui http://localhost:40000'>http://localhost:40000/gui'>http://localhost:40000'>http://localhost:40000/gui

ProxyPassReverse /gui http://localhost:40000'>http://localhost:40000/gui'>http://localhost:40000'>http://localhost:40000/gui

In script of webui It should get data at this location http://localhost:40000'>http://localhost:40000 but it just got data from http://localhost

It didn't use port that i configure

If anyone know about this issue please tell me how to solve this problem

Thx for your kindness

Link to comment
Share on other sites

1st. Make sure its working locally on the µtorrent port before trying it through the proxy remotely.

If you can try it remotely on the µtorrent port before using it without port..

Read the webui readme.txt file about the stuck at loading problem. It might be the remote browser you are using.

ONLY change the port in the code to your µtorrent port. Don't change anything else:

ProxyPass /gui http://localhost:40000/gui

ProxyPassReverse /gui http://localhost:40000/gui

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Hmmm...As for now:

1. If user type smth like this:"http://webserver.domain:port" he gets "invalid request message"

2. If user enters smth like this:"http://webserver.domain:port/gui" he gets complete WebUI

Why not to do so:

1. If user type smth like this:"http://webserver.domain:port" he gets some static blank custom page (with link to WebUI optionally)

2. If user enters smth like this:"http://webserver.domain:port/gui" he gets complete WebUI

Why so? Par example, at my work ONLY 80 port is allowed, no more ports opened. And If I want 2 access 2 my WebUI@home (I'm runnin' webserver also) its impossible. Only one - WebUI or httpd allowed at same time...

Maybe blank custom page nor "invalid request" is some kind of solve?

Link to comment
Share on other sites

  • 5 months later...

I have the same reverse proxy scenario in my lan, except that utorrent is running on a separate host (apache firewall -> utorrent client). While everything works fine with Firefox, IE7 brings up the page "loading..." followed by a popup "The request to uTorrent has timed out". I followed all your advice and still need your help in order to get that to work. I love the interface by the way; amazing work!!! Thanks for any help!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...