Page 5 of 5
Re: 1.0 WebUi
Posted: Tue Sep 22, 2009 9:12 pm
by Golork
okay but how to forward the port ?
I'm a noob on routing...
Re: 1.0 WebUi
Posted: Wed Sep 23, 2009 4:55 am
by johnnyg
- Go to http://portforward.com/
- Select your router
- Choose "default guide"
- Enter 8112 for the port to be forwarded
hope that helps...
Re: 1.0 WebUi
Posted: Tue Oct 27, 2009 2:07 pm
by kikiller
Hi, did anyone make it work with 1.2 webui?
A lot of things have changed, and proxypass doesn't work either...
Thanks,
Christophe.
Re: 1.0 WebUi
Posted: Tue Oct 27, 2009 3:50 pm
by damoxc
Make what work exactly?
Re: 1.0 WebUi
Posted: Wed Oct 28, 2009 7:08 am
by kikiller
Hi damoxc,
Make mod_wsgi work with deluge and apache so that I can get access to deluge webui through
http://myserver/deluge/.
I tried with proxypass on apache but had no success, so I guessed it could work with wsgi but didn't succeed either.
Thanks for your help.
Re: 1.0 WebUi
Posted: Fri Oct 30, 2009 1:14 pm
by damoxc
I don't know about the 1.1.x webui but I know for definite that the 1.2 webui won't work with mod_wsgi since it uses twisteds own webserver so you'll have to use mod_proxy for it.
Re: 1.0 WebUi
Posted: Tue Nov 24, 2009 7:12 pm
by Rudde
I have ues WebUI in 1 day and father this I got this error:
http://pastebin.ca/1685813
Nothing in Deluge is edited.
Re: 1.0 WebUi
Posted: Sun Mar 28, 2010 3:27 pm
by pako.wako
Hello everyone. This post was useful when configuring my deluge GUI interface to work as a virtual host with Apache, but some things are a little out-dated. Here's a more up-to-date version of the files I used.
Instead of deluge_apache_config.py, I renamed the file to apache.py, I don't like long filenames
/data/www/torrents/apache.py
Code: Select all
#!/usr/bin/env python
#config ; EDIT THIS
CONFIG_DIR = '/data/config/deluge' #No trailing slashes. You can change to /home/user/.config/deluge or wherever you have your deluge settings
BASE_URL = '' #the apache url /No trailing slashes. I am using a virtual host, so the base is the root
#/config
#Do not edit this:
import os
def get_wsgi_application(base_url, config_dir):
#replace default configuration directory
from deluge import common
def get_config_dir(filename = ""):
return os.path.join(config_dir, filename)
common.get_default_config_dir = get_config_dir
#load configuration
from deluge.configmanager import ConfigManager
from deluge.ui.webui import deluge_webserver
from deluge.ui.webui import utils
config = ConfigManager("webui06.conf")
utils.set_config_defaults()
#set new base url
config['base'] = base_url
config['disallow'] = {
'/daemon/control':'running as an apache user',
'/config/server':'running as an apache-user'
}
utils.apply_config()
#run application
return deluge_webserver.WsgiApplication()
application = get_wsgi_application(BASE_URL, CONFIG_DIR)
/etc/apache2/sites-available/torrents.domain
Code: Select all
<VirtualHost *>
ServerName torrents.domain
WSGIProcessGroup deluge
WSGIDaemonProcess deluge processes=1 threads=25
WSGIScriptAliasMatch ^/(.*) /data/www/torrents/apache.py/$1
</VirtualHost>
How to configure virtual hosts is beyond the scope of this post, but if you want to configure your host in a subdirectory, as the previous post did, just change BASE_URL in apache.py to that subdirectory, change WSGIScriptAliasMatch to
Code: Select all
WSGIScriptAliasMatch ^/subdirectory/(.*) /data/www/torrents/apache.py/$1
and remove the <VirtualHost> open and close tags. Then just paste the rest to /etc/apache2/httpd.conf (to all Apache gurus out there: am I missing something?)
Technical Notes
The problem I had with the previous files was that in version 1.1.9 (latest) of deluge-webui (Ubuntu) deluge.ui.webui.apache used in deluge_apache_config.py is out-dated (you can find that code at /usr/lib/pymodules/python2.6/deluge/ui/webui/apache.py). It attempts to substitute common.get_config_dir from deluge.common but that's not the name of the function anymore, it is now called get_default_config_dir. Also, the original deluge/ui/webui/apache.py always used /deluge as a subdirectory, so no matter what you tried to change BASE_URL to, it would always be /deluge.
Re: 1.0 WebUi
Posted: Fri Nov 08, 2013 1:44 am
by rasa29
What is Open delugew2.cmd ???
Re: 1.0 WebUi
Posted: Tue Nov 19, 2013 1:09 pm
by Cas
This topic is obsolete...