As topic.
I have set up my IIS (v 10.0.14393.0) with rules for a specific path to distribute a MJPEG stream I have locally on port 8081.
In a web page I have included a link to the specified path, <img src="/testfolder/videos/test.jpg'"></img>
It all works, but after loaded for a while the w3wp.exe process dies. (When looking in task manager I can see the memory used grows...)
I think this is because IIS caches all the images, but I am not sure.
I have asked this question before on the forums and only was adviced to do log of the problem. However reading and understanding the log did not do anything for me.
To set -up and see the issue:
Web structure:
webroot/
webroot/testfolder/videos/
webroot/testfolder/index.html
webroot/testfolder/web.config
web.config:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Reverse Proxy To videostream" enabled="true" stopProcessing="true"> <match url="^videos/(.)" /> <action type="Rewrite" url="http://2.248.130.108:81/mjpg/video.mjpg" /> </rule> </rules> <outboundRules> <rule name="Reverse Proxy Outboundrule to videostream" preCondition="ResponseIsHtml1" enabled="true"> <match filterByTags="A, Area, Base, Form, Frame, Head, Img, Link" pattern="^http://2.248.130.108:81/mjpg/video.mjpg" /> <action type="Rewrite" value="/testfolder/videos/test.jpg" /> </rule> <preConditions> <preCondition name="ResponseIsHtml1"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^(.)" /> </preCondition> </preConditions> </outboundRules> </rewrite> </system.webServer> </configuration>
index.html:
<img src="/testfolder/videos/test.jpg"></img>
I hope this is a configuration issue. It feels like the MHPEG is being cached by IIS somehow. (And I don't want that)
Kind regards, Emanuel