HOWTO: Hide SABnzbd behind Lighttpd

Feel free to talk about anything and everything in this board.
Post Reply
User avatar
thaylok
Newbie
Newbie
Posts: 29
Joined: November 20th, 2008, 11:39 am

HOWTO: Hide SABnzbd behind Lighttpd

Post 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.
Last edited by thaylok on December 4th, 2008, 7:47 pm, edited 1 time in total.
User avatar
thaylok
Newbie
Newbie
Posts: 29
Joined: November 20th, 2008, 11:39 am

Re: HOWTO: Hide SABnzbd behind Lighttpd

Post by thaylok »

If anybody knows how to combine the proxypass
with a rewrite or internal url redirect, please fill me in on it :)
undertow
Newbie
Newbie
Posts: 12
Joined: June 16th, 2008, 8:09 am

Re: HOWTO: Hide SABnzbd behind Lighttpd

Post by undertow »

Post Reply