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

rewrite causing 500 errors

$
0
0

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}&amp;method={R:2}&amp;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}&amp;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 id="section_detail_52_details">
FilterNameD:\ColdFusion2018\config\wsconfig\1\isapi_redirect.dll
</div>
<div class="duration">0 ms</div>53. -FILTER_END<div id="section_detail_53_details">
NotificationStatusSF_STATUS_REQ_ERROR
</div>
<div class="duration">0 ms</div> <div class="severity-error">Error</div>54. -FILTER_ERROR<div id="section_detail_54_details">
ErrorCodeIncorrect function. (0x1)
</div>
<div class="duration">0 ms</div> <div class="severity-informational">Informational</div>55. -FILTER_AUTH_COMPLETE_END<div id="section_detail_55_details">
</div>
<div class="duration">0 ms</div> <div class="severity-warning">Warning</div>56. -MODULE_SET_RESPONSE_ERROR_STATUS<div id="section_detail_56_details">
ModuleNameIsapiFilterModule
NotificationAUTHENTICATE_REQUEST
HttpStatus500
HttpReasonInternal Server Error
HttpSubStatus0
ErrorCodeIncorrect function. (0x80070001)
ConfigExceptionInfo
</div>
<div class="duration">0 ms</div> <div class="severity-verbose">Verbose</div>57. -NOTIFY_MODULE_END<div id="section_detail_57_details">
ModuleNameIsapiFilterModule
NotificationAUTHENTICATE_REQUEST
fIsPostNotificationEventtrue
NotificationStatus

NOTIFICATION_FINISH_REQUEST

</div>
</div> </div>

Viewing all articles
Browse latest Browse all 2482

Trending Articles