mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
Created IIS ARR Reverse Proxy (markdown)
parent
7dc687b7d1
commit
5c9c189798
1 changed files with 27 additions and 0 deletions
27
IIS-ARR-Reverse-Proxy.md
Normal file
27
IIS-ARR-Reverse-Proxy.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
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:
|
||||
|
||||
Server variable name: **HTTP_X-Forwarded-Host**
|
||||
|
||||
Value: **{HTTP_HOST}:{SERVER_PORT}**
|
||||
|
||||
The code is automatically created in the web.config file and looks like this (note you must use the GUI first so reverse proxy support is enabled):
|
||||
|
||||
<rule name="Qbittorrent" stopProcessing="true">
|
||||
<match url="qbweb/(.*)" />
|
||||
<action type="Rewrite" url="http://127.0.0.1:8080/{R:1}" />
|
||||
<serverVariables>
|
||||
<set name="HTTP_X-Forwarded-Host" value="{HTTP_HOST}:{SERVER_PORT}" />
|
||||
</serverVariables>
|
||||
</rule>
|
||||
|
||||
Note you can use HTTPS to access the URL via IIS and it will use HTTP to communicate with qBittorrent.
|
||||
|
||||
The tutorial is based on the assistance of Chocobo1 in [this thread](https://github.com/qbittorrent/qBittorrent/issues/7311)
|
Loading…
Reference in a new issue