IIS on Windows 2000 and Windows XP
benedikt
I have setup Rails/IIS on Windows XP and Windows 2000, using subdirectories.
On Windows XP I additionally had to patch 3 rails lib files for query string processing. For subdirectories to work I had to set AssetHost and prefix all routes with VIRTUAL_DIR/.
I also had to create a more complicated rewrite rule handling dots in parameter values. But after all that, it works fine.
With windows 2000 and MS SQL (odbc) I had not that much luck. First of all, the IIS Server needs a restart in order for FCGI to work.
But then, although the application starts up and works as expected, rubyw.exe crashes every few requests, rendering the whole thing unusable.
What a pity.
If you know what could cause the trouble (the segfaults occur in msvcrt.dll), I'd appreciate hints, though I personally start to think that ruby on IIS is really too much trouble for me.
Concerning your installation guide:
This is the rewrite rule I used (replacing VIRTUAL DIR):
IterationLimit 0
RepeatLimit 0
RewriteRule ^(/VIRTUAL_DIR[^.?]*)(\?.*)?$ /VIRTUAL_DIR/dispatch.fcgi?$1$2 [L]