IIS 10, Windows 2K16, URL Rewrite 2.1. The server has about 6 sites on it, 2 of which us rewrite rules. Site #1 ran fine with it's rewrite rules until about 2 weeks ago when it would start go give random 500 errors. We enabled failed request tracing which shows the error below. When we disable the rules and access the URL directly, the error goes away, which is what we did on site #1. #2 is our API and is a bit more complex to just eliminate the rules from. The rewrite rules look like this:
<div style="color: #d4d4d4; background-color: #1e1e1e; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 15px; line-height: 20px; white-space: pre;"> <div><httpErrors existingResponse="PassThrough" /></div><div> <rewrite></div> <div> <rules></div><div> <rule name="ApiWithControllerAndId" stopProcessing="true"></div><div> <match url="^([^/]+)/([^/]+)/([^/]+)/?$" /></div><div> <conditions></div> <div> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /></div><div> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></div><div> </conditions></div> <div> <action type="Rewrite" url="index.cfm?controller={R:1}&method={R:2}&id={R:3}" /></div><div> </rule></div> <div> <rule name="ApiWithController" stopProcessing="true"></div><div> <match url="^([^/]+)/([^/]+)/?$" /></div><div> <conditions></div> <div> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /></div><div> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></div><div> </conditions></div> <div> <action type="Rewrite" url="index.cfm?controller={R:1}&method={R:2}" /></div><div> </rule></div> <div> </rules></div><div> </rewrite></div> </div>All other sites that do not use rewrite in URL rewrite (we have some redirct rules but they're not effected) work fine. The API site also works fine on a different, identical server. At this point I'm out of ideas as to where to even look. Tomcat indicates an IIS issue, IIS support people say it's a Tomcat issue etc.
<div class="content-container"> <div class="hidden" id="section_detail" style="display: block;"></div> </div>