From bdc84eefbb4e1e33bcb9aa9c57ae4bc9672a80b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 11 Apr 2020 16:00:25 +0300 Subject: [PATCH] add lighttpd proxuy example --- Reverse-Proxy.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md index 2ec5d10..da34b08 100644 --- a/Reverse-Proxy.md +++ b/Reverse-Proxy.md @@ -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)_**