Tuesday, June 19, 2007

Running Rails Apps More Reliability under IIS


I have been attempting to get the new FastCGI for IIS preview to run on IIS5/6 as detailed previously.

Yes it runs just, But is unrelaible when you perform http posts. However the exersise had one good side effect.

The Good News

The blog at 10 steps to get Ruby on Rails running on Windows with IIS FastCGI detailed a change you need to make to the cgi.rb. because IIS does not support No Parsed Headers (NPH)

Once this change was in place, My web site using the older fastcgi runs much more reliably

# The changes is to lib\ruby\1.8\cgi.rb, 
# is to comment out the refereence to IIS
Line 559: if options.delete("nph") # or /IIS/n.match(env_table['SERVER_SOFTWARE'])

The Bad News

I would perferr to use the new FastCGI for IIS when it comes out, My problem issue is detailed on the IIS FastCGI Handler Forum hopefully some one will details a solution.

No comments: