2010-04-23, 16:10
Just finished putting Sick Beard behind an apache2.2 server. Ran into slight problem along the way. I'll try and explain it a little for anyone else who wants to do the same thing.
Basically, Im talking about changing it so I don't access Sick Beard at but at for me its just neater and it means I don't have to forward an extra port.
to do this you first need to configure apache with something like this:
Then change the Web_Root option in config.ini to
This is where I ran into trouble.. I post processing kept giving me exit code 0 ... I had forgotten about autoProcessTV.cfg.
looking in the python script autoProcessTV.py we see it load these (plus web_root)
and then uses them to open this address
the key for us here is the web_root part, we need to match it to what we chose in config.ini so that your autoProcessTV.cfg will look like this:
Sorry for the long explanation but this took me a while to figure out and really its easy stuff so it should have. hope it helps someone elese
Basically, Im talking about changing it so I don't access Sick Beard at
Code:
http://localhost:8081
Code:
http://localhost/sickbeard
to do this you first need to configure apache with something like this:
Code:
<Location /sickbeard>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:PORT/sickbeard
ProxyPassReverse http://localhost:PORT/sickbeard
</location>
Then change the Web_Root option in config.ini to
Code:
Web_Root = /sickbeard"
This is where I ran into trouble.. I post processing kept giving me exit code 0 ... I had forgotten about autoProcessTV.cfg.
Code:
[SickBeard]
host=localhost
port=8081
username=
password=
looking in the python script autoProcessTV.py we see it load these (plus web_root)
Code:
host = config.get("SickBeard", "host")
port = config.get("SickBeard", "port")
username = config.get("SickBeard", "username")
password = config.get("SickBeard", "password")
try:
web_root = config.get("SickBeard", "web_root")
except ConfigParser.NoOptionError:
web_root = ""
and then uses them to open this address
Code:
url = "http://" + host + ":" + port + web_root + "/home/postprocess/processEpisode?" + urllib.urlencode(params)
the key for us here is the web_root part, we need to match it to what we chose in config.ini so that your autoProcessTV.cfg will look like this:
Code:
[SickBeard]
host=localhost
port=8081
username=
password=
web_root=/sickbeard
Sorry for the long explanation but this took me a while to figure out and really its easy stuff so it should have. hope it helps someone elese