Lord Alderaan Posted September 26, 2007 Report Share Posted September 26, 2007 Does ie7 work if you access the webui directly? Link to comment Share on other sites More sharing options...
endeler Posted September 26, 2007 Report Share Posted September 26, 2007 Ah sorry, I forgot to mention that. Yes, direct access via internal URL works like a charm. Link to comment Share on other sites More sharing options...
thenet Posted October 19, 2007 Report Share Posted October 19, 2007 I've config apache to use webui via mod_proxy everything works except for upload torrent when i upload it's say waiting for ..... then nothing happen. How to make it able to upload torrent via this method ? Thanks Link to comment Share on other sites More sharing options...
endeler Posted October 19, 2007 Report Share Posted October 19, 2007 Are you using Internet Explorer? Link to comment Share on other sites More sharing options...
thenet Posted October 20, 2007 Report Share Posted October 20, 2007 I'm using Firefox anythings work except for upload that i asked.In IE it stuck at loading... Link to comment Share on other sites More sharing options...
endeler Posted October 21, 2007 Report Share Posted October 21, 2007 This is working fine for me... could you post your apache config? I'll check that after! Link to comment Share on other sites More sharing options...
antiism Posted January 17, 2008 Report Share Posted January 17, 2008 If you want to use a location other than /gui/, like /utorrent/, then change the lines in the httpd.conf to:ProxyPass /utorrent http://localhost:[port]/guiProxyPassReverse /utorrent http://localhost:[port]/guiand then go to C:\Documents and Settings\[user]\Application Data\uTorrent\webui.zip. Go through all of the javascript files in there and replace "/gui/" with "/utorrent/".You won't be able to access the webui from the normal port anymore (it will hang at log in), but when you go to http://localhost/utorrent/ it will work like normal. Link to comment Share on other sites More sharing options...
ChoGGi Posted January 17, 2008 Report Share Posted January 17, 2008 thank you for the tip antiism, but i didnt have to change /gui/ to /utorrent/LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.soProxyPass /utorrent http://localhost:12345/guiProxyPassReverse /utorrent http://localhost:12345/guiedit: sorry im wrong Link to comment Share on other sites More sharing options...
stibbs Posted February 6, 2008 Report Share Posted February 6, 2008 I am getting the same problem with IE7 timing out after passing authentication (on both Vista and Windows XP), however when using Firefox on my PC or even Opera which is loaded onto my Arhcos and Wii I can access it no problems. Link to comment Share on other sites More sharing options...
Ultima Posted February 7, 2008 Report Share Posted February 7, 2008 http://forum.utorrent.com/viewtopic.php?id=31909That's at least one bug with IE+WebUI that can cause timeouts. Link to comment Share on other sites More sharing options...
onnz Posted April 12, 2008 Report Share Posted April 12, 2008 antiism I follow ur code but I Get in blank page after logon U can solve?i have many user in my computer each use one port for utorrent such asuser1: use port 11000user2: use port 11001user3: use port 11002user4: use port 11003and i use appache 2.2 to forward port to port 80by this "ProxyPass /gui http://localhost:11001/gui"that one user can be use at "http://ip/gui/"how to change "http://ip/gui" into "http://ip/user1" in this newest version of web uii change three word of "gui" in script.js but that result in blank pagehow can i solve multi user for 80 port by appache 2.2 Link to comment Share on other sites More sharing options...
Ultima Posted April 13, 2008 Report Share Posted April 13, 2008 Use ProxyPass for each port, then? Link to comment Share on other sites More sharing options...
onnz Posted April 13, 2008 Report Share Posted April 13, 2008 how to Use ProxyPass for each port, Mod.i tryProxyPass /gui1 http://localhost:11001/guiProxyPass /gui2 http://localhost:11002/guiProxyPass /gui3 http://localhost:11003/guiProxyPass /gui4 http://localhost:11004/guibut it can't be result Link to comment Share on other sites More sharing options...
abydos Posted July 17, 2008 Report Share Posted July 17, 2008 I'm using apache and utorrent webUI. I had the same probleme as many others, the 80 port was reserved for apache, so i read some apache docs and figured this out.With this setting http://server/gui and http://server/torrent works fine.LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_connect_module modules/mod_proxy_connect.soLoadModule proxy_http_module modules/mod_proxy_http.so<VirtualHost *:80>ServerAdmin webmaster@torrentboxDocumentRoot D:/htdocs/ServerName torrentboxErrorLog logs/torrent_proxy-error_log.txtTransferLog logs/torrent_proxy-access_log.txtProxyPass /torrent http://127.0.0.1:8080/guiProxyPass /gui http://127.0.0.1:8080/gui</VirtualHost> Link to comment Share on other sites More sharing options...
simtel Posted July 20, 2008 Report Share Posted July 20, 2008 I've been struggling with reverseproxying the webui in apache for a few days now, and I've just got it to work. I thought I'd share my solution.Firstly, we run two instances of utorrent (one downloads allday, the other only on off-peak), so I am using two separate ports, let's call them port 1111 and port 2222.Secondly, I wanted to map it to something like this: ut.domain.tld/normal and ut.domain.tld/offpeakAfter reading about reverse proxy this seemed easy enough and I tried this in my httpd-vhosts.conf:ProxyPass /normal/ http://localhost:1111/gui/ProxyPassReverse /normal/ http://localhost:1111/gui/ProxyPass /offpeak/ http://localhost:2222/gui/ProxyPassReverse /offpeak/ http://localhost:2222/gui/Didn't work though, I got the annoying "Loading..." forever. So then I thought it might be a problem with cookies, so I added reverse proxy for them too (well I figured it couldn't hurt to try it):ProxyPass /normal/ http://localhost:1111/gui/ProxyPassReverse /normal/ http://localhost:1111/gui/ProxyPassReverseCookieDomain http://localhost:1111/gui/ http://ut.domain.tld/normal/ProxyPassReverseCookiePath /gui/ /normal/ProxyPass /offpeak/ http://localhost:2222/gui/ProxyPassReverse /offpeak/ http://localhost:2222/gui/ProxyPassReverseCookieDomain http://localhost:2222/gui/ http://ut.domain.tld/offpeak/ProxyPassReverseCookiePath /gui/ /offpeak/Didn't make a difference though. Still hanging on that "Loading..." screen. Very annoying.So I tried a few different things, nothing of which worked. I'd checked that it was working locally, and I'd tried the ?list=1, and that was spitting out my torrents properly. I didn't know what to do.Then I checked my javascript error console. Ah, there's the problem:Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://ut.domain.tld/common.js :: Ajax :: line 448" data: no]Source File: http://ut.domain.tld/common.jsLine: 448After reading someone mention changing all references to /gui in the .js files I tried itAnd now it works!So in conclusion, if you're mapping your webui to anything other than domain.tld/gui you'll have to find all references to /gui in the js and replace it with whatever subdirectory you want to use.Just a thought for the next version of the webUI, maybe make it so you can run it from whatever subdirectory you want, without having to delve into the js.And sorry for the long winded post, but I found this problem most annoying, so I thought I'd share my solution, hope it helps. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted July 28, 2008 Report Share Posted July 28, 2008 Yup. Let me put that in bold for the next readers.You have to use /guiIf 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 More sharing options...
j4ni Posted October 6, 2008 Report Share Posted October 6, 2008 Hi Folks,I am very happy that I have found this Reverse Proxy topic...I have already set up the very simple, apache based reverse proxy described above.It works like a dream.The code is, as decribed.:ProxyPass /gui/ http://localhost:8080/gui/ProxyPassReverse /gui/ http://localhost:8080/gui/What I want to achive on top of that is a very simple filtering of HTTP requests.:I want to filter all HTTP requests which include the "/?action=setsetting" string (or something simmilar)The reason is this.: I dont want to allow that users modify some "deep" settings.I am aware ot the Lord Alderan Shell, but I want to have something very simple.I am quite sure that only one additional line is missing. I have already experimented, but the Apache docu is quite heavy and has little examples about filtering function...CheersJanos Link to comment Share on other sites More sharing options...
Novox Posted October 11, 2008 Report Share Posted October 11, 2008 @j4niYou can edit script.js in webui.zip to avoid user to setting uTorrent in WebUI. Link to comment Share on other sites More sharing options...
Ultima Posted October 11, 2008 Report Share Posted October 11, 2008 j4ni already knows, and that's precisely why (s)he's asking about filtering the setsetting request. Changing the frontend doesn't make the backend stop accepting and responding to a request. Link to comment Share on other sites More sharing options...
rathel Posted May 2, 2009 Report Share Posted May 2, 2009 I'm having trouble getting this to work, when I add:ProxyPass /gui http://127.0.0.1:11223/gui ProxyPassReverse /gui http://127.0.0.1:11223/guiTo my httpd.conf I get "Permission Denied" error in my browser, if I instead add it to my Virtualhost file I get "File Not Found". Link to comment Share on other sites More sharing options...
lose_the_grimm Posted January 4, 2010 Report Share Posted January 4, 2010 This has worked for me without the need for modifying any of the webui javascripts.<VirtualHost *:80> DocumentRoot /var/www ServerName torrents.mydomain.com RewriteEngine On RewriteRule ^/gui/?(.*)$ /$1 [R] <Location /> ProxyPass http://127.0.0.1/gui/ ProxyPassReverse http://127.0.0.1/gui/ </Location></VirtualHost>This assumes 'torrents.mydomain.com' is resolving to the server webui is running on. If utorrent is not running on the server that 'torrents.mydomain.com' is resolving to then just change the '127.0.0.1' to the appropriate place.As an example lets say you're running uTorrent with webui on your box on your home network on port 8080, and your machine has a IP of '192.168.0.3'. You would change the lines containing '127.0.0.1' to: ProxyPass http://192.168.0.3:8080/gui/ ProxyPassReverse http://192.168.0.3:8080/gui/Hope this helps! Link to comment Share on other sites More sharing options...
acidnine822 Posted November 20, 2010 Report Share Posted November 20, 2010 Aha this works:LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_connect_module modules/mod_proxy_connect.soLoadModule proxy_http_module modules/mod_proxy_http.soLoadModule proxy_ftp_module modules/mod_proxy_ftp.soProxyPass /gui http://localhost:40000/guiProxyPassReverse /gui http://localhost:40000/guiReplace the 40000 with your utorrent/webui port.Stupid that I didn't think about it myself.http://localhost/gui/You have to use /guiIf 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.U sir are awesome! TY Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.