diff --git a/IIS-ARR-Reverse-Proxy.md b/IIS-ARR-Reverse-Proxy.md index 2f985de..555072f 100644 --- a/IIS-ARR-Reverse-Proxy.md +++ b/IIS-ARR-Reverse-Proxy.md @@ -1,27 +1,28 @@ For users that run qBittorrent via Microsoft IIS as a reverse proxy an extra header is needed. You must install the [URL Rewrite](https://www.iis.net/downloads/microsoft/url-rewrite) addon first. Reverse proxy support will be enabled when creating the first rule. 1. On the URL Rewrite Page open **View Server Variables** on the right side -1. Click **Add** and in the box that appears enter **HTTP_X-Forwarded-Host** -1. Return to the rules page -1. Open **Add Rules** and select **Reverse Proxy** -1. Enter the server IP:Port without http:// (for example 127.0.0.1:8080) -1. Open the new rule and change the path to a subdirectory if needed (for example **qbweb/(.*)** = http://domain.tld/qbweb/) -1. Under **Server Variables** add a rule with the following: +2. Click **Add** and in the box that appears enter `HTTP_X-Forwarded-Host` +3. Return to the rules page +4. Open **Add Rules** and select **Reverse Proxy** +5. Enter the server IP:Port without `http://` (for example `127.0.0.1:8080`) +6. Open the new rule and change the path to a subdirectory if needed (for example **qbweb/(.*)** = http://domain.tld/qbweb/) +7. Under **Server Variables** add a rule with the following: Server variable name: **HTTP_X-Forwarded-Host** - Value: **{HTTP_HOST}:{SERVER_PORT}** + Value: `{HTTP_HOST}:{SERVER_PORT}` The code is automatically created in the web.config file and looks like this (you must use the GUI first so reverse proxy support is enabled): - - - - - +```xml + + + + - + +``` You can use HTTPS to access the URL via IIS and it will use HTTP to communicate with qBittorrent. There is no need for HTTPS on localhost. -The tutorial is based on the assistance of Chocobo1 in [this thread](https://github.com/qbittorrent/qBittorrent/issues/7311). A temp exe is provided in that thread for 3.3.15 for a bug that will hopefully be fixed in the next version. \ No newline at end of file +The tutorial is based on the assistance of Chocobo1 in [this thread](https://github.com/qbittorrent/qBittorrent/issues/7311).