Page 1 of 1

HOWTO: Hide SABnzbd behind Lighttpd

Posted: November 30th, 2008, 4:30 pm
by thaylok
How to proxy SABnzb's CherryPy through Lighttpd:

- Make sure you have mod_proxy loaded (in lighttpd.conf add it to the server.modules section)
- Add the following to lighttpd.conf:

Code: Select all

$HTTP["host"] =~ “gui.host.local″ {
proxy.server = (
“” => (
“sabnzbd” => (
“host” => “127.0.0.1",
“port” => 8080,
“fix-redirects” => 1
)))
}
Notes:
gui.host.local can be anything you wish, but if you use "myserver.local"
it will bind up that name so you can't access an already running webserver
that you might have there.

I personally have this running with "gui.myhostname.tld".

Unfortunately I haven't figured out how to redirect to "/sabnzbd"
so your adress will be "http://gui.host.local/sabnzbd"

Hope this is usefull for somebody :)



Update:

Code: Select all

$HTTP["host"] =~ “host.local″ {
proxy.server = (
“/sabnzbd” => (
“sabnzbd” => (
“host” => “127.0.0.1",
“port” => 8080,
“fix-redirects” => 1
)))
}
If you do it like this you don't have to use a sub domain.
Your adress will be: "http://host.local/sabnzbd"
And everything you got running on host.local will still be reachable.

Re: HOWTO: Hide SABnzbd behind Lighttpd

Posted: December 4th, 2008, 7:48 pm
by thaylok
If anybody knows how to combine the proxypass
with a rewrite or internal url redirect, please fill me in on it :)

Re: HOWTO: Hide SABnzbd behind Lighttpd

Posted: December 23rd, 2008, 10:49 am
by undertow