iirf.ini caches rewrite rule

Topics: Developer Forum
Nov 10, 2011 at 6:05 PM

Please help me. Im so dumbstruck ... maybe Im missing something. I have the iirf.ini file in my root of the site. I can see in the log file that it loads this file to use for processing, but here is my issue :

This is my INI file :

RewriteEngine ON
RewriteLog c:\inetpub\iirfLogs\iirf
RewriteLogLevel 2
StatusInquiry ON
CondSubstringBackrefFlag *

RewriteCond %{HTTP_HOST} ^(?!www|service)([^.]+)\.yourmoneymatters\.co.za [I]
RewriteRule ^/(.*) /YMM.dll/ShowPage?PN=home.html&ref=*1 [U,L]
Im trying to rewrite any subdomain that is not www or service to be added as a queryfield (got this from samples .... which i can see from the log it is trying to do, HOWEVER ... from the log :
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: actual log file 'c:\inetpub\iirfLogs\iirf.1748.log'
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: ini file: 'C:\Inetpub\wwwroot\YMM\Iirf.ini'
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: ini file timestamp: 2011/11/10 20:52:34 (local time)
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: cfg(0x01DB6358)
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: LogLevel = 2
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(6): RewriteEngine will be enabled.
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(9): StatusInquiry ON (--) (--)
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(9): IIRF Status Inquiry is enabled at path '/iirfStatus' for local requests only.
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(10): CondSubstringBackrefFlag *
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(19): RewriteCond   %{HTTP_HOST}  ^(?!www|service)([^.]+)\.yourmoneymatters\.co.za '[I]'
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: C:\Inetpub\wwwroot\YMM\Iirf.ini(20): RewriteRule (rule 1)  '^/(.*)'  '/YMM.dll/ShowPage?PN=home.html&ref=*1'    [U,L]
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: INFO: No global NotifyLog - Unmangled URIs will not be logged.
Thu Nov 10 20:57:43 -  4480 - ReadVdirConfig: Done reading INI for the root vdir, found 1 rules (0 errors, 0 warnings) on 24 lines, in 1 modules
Thu Nov 10 20:57:43 -  4480 - DoRewrites: Url (decoded): '/YMM.dll/ShowPage?Home.html&ref=www'

If you look at the last line ... its not just ignoring my exclude ... for some reason its throwing away the "PN" part in the ShowPage?PN=home.html

I've restart the IIS, restarted the server made sure there so no other INI files anywhere ... but it still keeps on doing this.

Any ideas?

Coordinator
Nov 10, 2011 at 8:21 PM

I don't know what you mean by "throwing away the PN part".  

Maybe you are referring to the line in the logfile that says "DoRewrites".  Maybe you are wondering why there is no PN in the URL that is shown there.  But that line in the logfile indicates an incoming request. This is the request that IIRF is receiving.  This is something that someone has typed into a browser.  There should be another line following that one that indicates what IIRF did with that request - whether it rewrote it, or did  nothing, or proxied it, etc.  But I don't see that log entry in the excerpt you've provided.

You may want to set LogLevel to 3 or 4 to get more verbose output, just while diagnosing this initial setup.