I believe this is a URL rewrite issue but I am unsure how to configure. I am sort of new to IIS rewrite so please excuse my ignorance:) The issue I am facing is I can log in and navigate website using reverse proxy with SSL normally. The only thing that does not work is the images and video streams will not load. When inspecting the webpage in Firefox I can see the 404 stating;
GET https://kodi.mydomain.cloud/image/image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f954%2fmovieposter%2fmission-impossible-5d6957f73ca05.jpg/
When I try to open in a browser, the browser appears to strip the ://https or the rewrite doesn't allow it to pass through.
https://kodi.mydomain.cloud/image/image%3A%2F%2Fhttps%253a%252f%252fassets.fanart.tv%252ffanart%252fmovies%252f954%252fmovieposter%252fmission-impossible-5d6957f73ca05.jpg%2F
I think this can be fixed in the URL rewrite but I'm not smart enough to figure that out and information I found with google only talks about other web platforms. I prefer IIS and do not want to switch to Apache or the others for this.
This is my rewrite, below code is more detailed error from using Firefox developer tool.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="HTTP Redirect" stopProcessing="true">
<match url="(.)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://kodi.mydomain.cloud/" />
</rule>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://192.168.88.6:9080/{R:1}" />
</rule>
</rules>
<outboundRules>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<directoryBrowse enabled="false" />
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
</system.webServer>
</configuration>
Firefox error
GET https://kodi.mydomain.cloud/image/image%3A%2F%2Fhttps%253a%252f%252fassets.fanart.tv%252ffanart%252fmovies%252f954%252fmovieposter%252fmission-impossible-5d6957f73ca05.jpg%2F
Status404
Not Found
VersionHTTP/1.1
Transferred281 B (82 B size)
Referrer Policystrict-origin-when-cross-origin
Notes:
Going to StaticIP:9080, 192.168.88.6:9080 or localhost:9080 the images work fine.
Applications:
IIS Version 6.2
Application Kodi
Thank You in advance.
