Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Need help fixing this reverse proxy for qBittorrent

$
0
0

For the most part this "works".  if I use the external url https://example.com/qtweb I get broken graphics and tables.  But if I use https://example.com/qtweb/ with the trailing slash then it works perfectly.  I am trying to avoid having to manually type in the trailing slash.  I was wondering an expert can help me fix this web.config.

this is what happens when it goes without the trailing slash https://localhost/qtweb#Start

this is what happens when I manually type in the trailing slash https://localhost/qtweb/#Start

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="ReverseProxyInboundRule1" stopProcessing="true"><match url="(.*)" /><action type="Rewrite" url="http://win81-ent-vm03:8085/{R:0}" /><serverVariables><set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" /><set name="HTTP_X-Forwarded-Host" value="{HTTP_HOST}:{SERVER_PORT}" /><set name="HTTP_ACCEPT_ENCODING" value="" /><set name="HTTP_REFERER" value="" /><set name="HTTP_ORIGIN" value="" /></serverVariables></rule></rules><outboundRules><clear /><rule name="Restore Encoding" preCondition="Restore HTTP_ACCEPT_ENCODING}"><match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.+)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="true" /><action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" /></rule><rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1" patternSyntax="ECMAScript"><match filterByTags="A, Area, Base, Form, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://win81-ent-vm03:8085/(.*)" /><conditions logicalGrouping="MatchAll" trackAllCaptures="true" /><action type="Rewrite" value="http{R:1}://example.com/qtweb/{R:2}" /></rule><preConditions><preCondition name="ResponseIsHtml1"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /></preCondition><preCondition name="Restore HTTP_ACCEPT_ENCODING}"><add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" /></preCondition></preConditions></outboundRules></rewrite></system.webServer></configuration>


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>