Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS 7.5 Reverse Web Proxy problems with v4.1.x+ #10619

Open
mbze430 opened this issue May 10, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@mbze430
Copy link

commented May 10, 2019

Please provide the following information

qBittorrent version and Operating System

4.1.6 Windows

If on linux, libtorrent and Qt version

(type here)

What is the problem

Qbittorrent WEBGUI will not proxy correctly if the request originates from HTTPS, seems to be fine from HTTP

What is the expected behavior

Should have the full GUI and tables

Steps to reproduce

Using this web.config that was taken from this github (can't remember the ticket #)
When using a browser on the IIS 7.5 host using the 'http://localhost/qbweb/' it will display correctly. However using either the domain name or localhost with 'https' it will be missing all the graphics and tables etc....

> <?xml version="1.0" encoding="UTF-8"?>
> 
> <configuration>
>     <system.webServer>
>         <rewrite>
>             <rules>
>                 <rule name="Lets Encrypt" stopProcessing="true">
>                     <match url=".well-known/acme-challenge/.*" />
>                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
>                     <action type="None" />
>                 </rule>
>                 <rule name="HTTP Redirect to HTTPS" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
>                     <match url="*" ignoreCase="true" />
>                     <conditions>
>                         <add input="{HTTPS}" pattern="off" />
>                     </conditions>
>                     <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="true" redirectType="Found" />
>                 </rule>
>                 <rule name="qBittorrent Reverse Proxy" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
>                     <match url="*" />
>                     <action type="Rewrite" url="http://download:8080/{R:1}" />
>                     <serverVariables>
>                         <set name="HTTP_REFERER" value="" />
>                         <set name="HTTP_ORIGIN" value="" />
>                     </serverVariables>
>                 </rule>
>             </rules>
>         </rewrite>
>     </system.webServer>
> </configuration>

Extra info(if any)

https://i.redd.it/eccj6t77obx21.png

@mbze430 mbze430 changed the title IIS 7.5 Proxy problems with v4.1.x+ IIS 7.5 Reverse Web Proxy problems with v4.1.x+ May 10, 2019

@thalieht thalieht added the WebUI label May 10, 2019

@mbze430

This comment has been minimized.

Copy link
Author

commented May 10, 2019

Okay after some more testing I have finally figured what the issue is, but I am not sure how to fix it since I have very little knowledge about IIS reverse proxy configuration file

when you type in the address... https://my.domainname.com/qbweb it translates the output and missing a '/' between 'qbweb' & '#Start' https://mbze430.noip.me/qtweb#Start

if you type in https://my.domainname.com/qbweb/ with the backslash already there then everything is perfect.

now this is what I tried to add into the web.config, but it didn't work, it still does the https://mbze430.noip.me/qtweb#Start

> <rule name="qBittorrent Reverse Proxy" enabled="true" patternSyntax="ECMAScript" >stopProcessing="true">
>                    <match url="(.*)/" />   
>                    <action type="Rewrite" url="http://win81-ent-vm03:8085/{R:1}" />
>                    <serverVariables>

<match url="(.*)/" /> thinking this would add the extra '/' but with that I can't even access the website.

Anyone here that is an expert on the web.config can chime in that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.