file and images not displayed after using IIS

0
System working fine when using application port which is configured in Mendix console, however, when open system through IIS which redirect to application port all files and images are not displaying and showing not found. I am adding routing option and images from working system and from IIS    below when connecting to system port configured in the console without IIS below when connecting to through IIS   Web config   <?xml version="1.0" encoding="UTF-8"?> <configuration>     <system.webServer>           <staticContent>             <mimeMap fileExtension=".mxf" mimeType="text/xml" />             <clientCache cacheControlMode="DisableCache" />         </staticContent>         <rewrite>             <rules>                 <clear />                 <rule name="add x-forwarded-proto header">                     <match url=".*" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <serverVariables>                         <set name="HTTP_X_FORWARDED_PROTO" value="https" />                     </serverVariables>                     <action type="None" />                 </rule>                 <rule name="xas">                     <match url="^(xas/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>                 <rule name="ws">                     <match url="^(ws/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>                 <rule name="ws-doc">                     <match url="^(ws-doc/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>         <rule name="link">                     <match url="^(link/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>         <rule name="file">                     <match url="^(file/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>                 <rule name="rest">                     <match url="^(rest/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>                 <rule name="rest-doc">                     <match url="^(rest-doc/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>                 <rule name="debugger">                     <match url="^(debugger/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>         <rule name="oauth">                     <match url="^(oauth/)(.*)" />                     <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />                     <action type="Rewrite" url="http://localhost:5051/{R:1}{R:2}" />                 </rule>             </rules>         </rewrite>     </system.webServer> </configuration>            
asked
1 answers
0

I found the issue, In file rewrite it is has be "^(file)(.*)" instead of "^(file/)(.*)"

answered