add lighttpd proxuy example

Elan Ruusamäe 2020-04-11 16:00:25 +03:00
parent 7a635111a5
commit bdc84eefbb
1 changed files with 30 additions and 1 deletions

@ -1,4 +1,4 @@
> Note: These examples assume you are using **_/jackett_** as your **Base URL**.
> Note: These examples assume you are using **_/jackett_** as your **Base URL** (`"BasePathOverride": "/jackett"` in `ServerConfig.json`).
> If your **Base URL** differs, replace all instances of **_/jackett_** with **_/YourBaseURL_**.
> Along with the steps below, you also need to set a base path override which is present under the configuration section on your Jackett dashboard.
@ -32,6 +32,35 @@ Configuration files for Apache are located within the `/etc/httpd/conf.d/` direc
***
**Lighttpd:**
Configure [lighttpd mod_proxy](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy) as:
```lighttpd
server.modules += (
"mod_proxy",
)
$HTTP["url"] =~ "^/jackett/" {
proxy.server = ( "" => ( (
"host" => "127.0.0.1",
"port" => "9117",
) ) )
proxy.header = (
"map-urlpath" => (
"/jackett/" => "/",
),
)
proxy.forwarded = (
"for" => 1,
"proto" => 1,
)
}
```
***
**IIS:**
The below rule assume you have a "virtual directory" named "jackett" under your default website in IIS. That virtual directory should target a physical directory that resides at `c:\inetpub\wwwroot\jackett`. Within this directory you would place the below rules in a web.config file. There should be no other files in this directory. **_(This is NOT your Jackett install directory)_**