crash of ISAPI filter

Topics: Developer Forum, User Forum
Mar 26, 2007 at 1:56 AM
Hello,

I have been trying without success to implement your ISAPI filter.
Starting with just simple rules, the filter will crash all the time:
Example 1:
--------------------------------------
RewriteLog C:\FILTERS\iis\writeThis.out
RewriteLogLevel 5
RewriteRule ^/can/bc/? /USA/WA/ I
--------------------------------------

What I really want to achieve is use your filter with dynamic subdomains
(I have 3 sites are connected to the same application)
Example 2:
--------------------------------------
RewriteCond %{HTTP_HOST} ^/(www\.)?(a-z0-9_\-{1,30})\.(e\-site1|site2|site3)(\.com)?/?/$i
RewriteRule ^/(.*) /subdomain/?value=%2
--------------------------------------

--------------------------------------

Placing this in IsapiRewrite4.ini does not crash the filter but it doesn't do anything either.
I tried your TestDriver.exe using following ini and some sample.txt page and it worked fine
but when trying to test using my website, is not doing anything.
The filter is loaded in this case.
If I add logging, it does not seem to detect subdomains for a reason I am not aware of.
Example: in IE address bar I type "http://jonny.e-site1" but nothing comes up
(this is the development machine and I don't have it set up for (\.com)? and that's why I check it this way.)
---------------------------------------
RewriteRule ^/(www\.)?(a-z0-9_\-{1,30})\.(e\-site1|site2|site3)(\.com)?/? /subdomain/?value=%2
---------------------------------------
Can someone point me in the right direction here because I am running out of options?

Thanks