<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tags 'FastCGI' and 'RubyOnRails'</title><link>http://blogs.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=FastCGI,RubyOnRails&amp;orTags=0</link><description>Search results matching tags 'FastCGI' and 'RubyOnRails'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Ruby on Rails in IIS 7.0 with URL Rewriter</title><link>http://blogs.iis.net/ruslany/archive/2008/08/07/ruby-on-rails-in-iis-7-0-with-url-rewriter.aspx</link><pubDate>Thu, 07 Aug 2008 17:57:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2611008</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>ruslany</cs:applicationKey><description>&lt;p&gt;If you ever tried to set up Ruby on Rails (RoR) on IIS 7.0 with FastCGI you have probably noticed that the process is not very straightforward. There are a few workarounds that need to be applied in order for RoR to function correctly. In particular, handling of static files in your web application can be tricky on IIS 7.0. The problem is that RoR uses clean URL&amp;#8217;s that look similar to this: &lt;strong&gt;http://mysite.com/home/about&lt;/strong&gt;. In order for RoR to be invoked for this kind of URL&amp;#8217;s&amp;nbsp; it is necessary to create a &amp;#8220;catch all&amp;#8221; handler mapping in IIS (that is a handler mapping with path attribute set to &amp;#8220;&lt;strong&gt;*&lt;/strong&gt;&amp;#8220;). When you create such a handler mapping it will cause requests for static files to be routed to RoR, which will obviously fail to handle them.&lt;/p&gt;
&lt;p&gt;For RoR to work correctly on IIS with FastCGI it needs to behave like a 404 handler, meaning that it should be invoked only if the requested URL does not exist as a file on a physical file system. The default IIS configuration does not allow this kind of configuration, so there are several workarounds available today - &lt;a title="Configuring RoR on IIS7" href="http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7" target="_blank"&gt;this article&lt;/a&gt; describes them in great details. However, these workarounds are either not recommended for production usage or are not easy to configure. In this post I will explain how URL Rewrite Module for IIS 7.0 can be used to configure IIS and RoR to work correctly with static files. &lt;/p&gt;
&lt;p&gt;&lt;span id="more-49"&gt;&lt;/span&gt;First let&amp;#8217;s setup RoR. To set it up I used instructions from these two great articles:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Mike Volodarsky&amp;#8217;s &lt;a title="10 steps to setup RoR" href="http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx" target="_blank"&gt;10 steps to get Ruby on Rails running on Windows with IIS FastCGI&lt;/a&gt;
&lt;li&gt;Ruby On Rails wiki article &lt;a title="How to configure IIS7" href="http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7" target="_blank"&gt;How To Configure IIS7&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both articles are a bit outdated, so I ended up with performing the following steps:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Installed latest version of Ruby by using &lt;a title="Ruby One Click Installer" href="http://www.ruby-lang.org/en/downloads/" target="_blank"&gt;One-Click Installer&lt;/a&gt;. At the time of writing this post the latest stable version was 1.8.6-26.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;: Installed Rails by running gem installer from command line window:&lt;/p&gt;
&lt;pre class="code"&gt;gem intsall rails --include-dependencies&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;: Installed &lt;a title="Ruby for IIS" href="http://rubyforiis.sosukodo.org/" target="_blank"&gt;RoR extensions for IIS&lt;/a&gt;. After installation completed I checked that everything was setup successfully by typing the following in the command line window:&lt;/p&gt;
&lt;pre class="code"&gt;C:\&amp;gt;irb
irb(main):001:0&amp;gt; require 'fcgi'
=&amp;gt; true
irb(main):002:0&amp;gt; quit
&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Step 4: &lt;/strong&gt;Created a web site in IIS with physical path C:\inetpub\ruby and with host name &amp;#8220;ruby&amp;#8221;. Also modified the %WINDIR%\system32\drivers\etc\hosts file to include this line:&lt;/p&gt;
&lt;pre class="code"&gt;127.0.0.1 ruby&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;Note that if you want to have RoR application in the &amp;#8220;Default Web Site&amp;#8221; in IIS you do not need to do this step.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;: Created a test RoR application in a root folder of a web site:&lt;/p&gt;
&lt;pre class="code"&gt;cd c:\inetpub\ruby
rails myapp
cd myapp
ruby script\generate controller test index&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Step 6&lt;/strong&gt;: Created a temporary FastCGI handler mapping for RoR:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="color: #a31515"&gt;xml &lt;/span&gt;&lt;span style="color: red"&gt;version&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;1.0&lt;/span&gt;" &lt;span style="color: red"&gt;encoding&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;utf-8&lt;/span&gt;"&lt;span style="color: blue"&gt;?&amp;gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;configuration&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
  &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;handlers&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
      &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;add &lt;/span&gt;&lt;span style="color: red"&gt;name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Ruby via FastCGI&lt;/span&gt;"
        &lt;span style="color: red"&gt;path&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;*&lt;/span&gt;"
        &lt;span style="color: red"&gt;verb&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;*&lt;/span&gt;"
        &lt;span style="color: red"&gt;modules&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;FastCgiModule&lt;/span&gt;"
        &lt;span style="color: red"&gt;scriptProcessor&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;C:\ruby\bin\ruby.exe|c:\inetpub\ruby\myapp\public\dispatch.fcgi development&lt;/span&gt;"
        &lt;span style="color: red"&gt;resourceType&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Unspecified&lt;/span&gt;" &lt;span style="color: red"&gt;requireAccess&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Script&lt;/span&gt;" &lt;span style="color: blue"&gt;/&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;handlers&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
  &amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;system.webServer&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;configuration&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 7&lt;/strong&gt;: Modified the RoR application to display some meaningful information. For that I opened the &lt;strong&gt;app\controller\test_controller.rb &lt;/strong&gt;file and pasted the following code into it:&lt;/p&gt;
&lt;pre class="code"&gt;class TestController &amp;lt; ApplicationController
   def index
      render :text=&amp;gt;"The index action"
   end
   def about
      render :text=&amp;gt;"The about action"
   end
end&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Step 8&lt;/strong&gt;: Tested that my RoR application works by browsing to &lt;strong&gt;http://ruby/test/about&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ruslany.net/wp-content/uploads/2008/08/rortestabout.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="291" alt="RoRTestAbout" src="http://ruslany.net/wp-content/uploads/2008/08/rortestabout-thumb.png" width="504" border="0"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now let me show you why the handler mapping, that I have created in step 6, is problematic. If I try to request a static image file in my application I get this response:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ruslany.net/wp-content/uploads/2008/08/rorroutingerror.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="324" alt="RoRRoutingError" src="http://ruslany.net/wp-content/uploads/2008/08/rorroutingerror-thumb.png" width="504" border="0"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is because the &amp;#8220;catch all&amp;#8221; handler mapping for RoR causes the HTTP request for static file to be given to RoR. RoR tries to match the requested URL against all the routes defined for the application and since there is no route defined for static file the routing error is raised.&lt;/p&gt;
&lt;p&gt;Now we will use &lt;a title="URL Rewrite module download" href="http://www.iis.net/urlrewrite" target="_blank"&gt;URL rewrite module&lt;/a&gt; to fix this problem. First, let&amp;#8217;s take a look at &lt;a title="RoR routing" href="http://wiki.rubyonrails.com/rails/pages/UnderstandingHowRequestsAreRouted" target="_blank"&gt;this article&lt;/a&gt; that explains how RoR is supposed to be setup on Apache Web Server. According to this article, RoR relies on Apache mod_rewrite to always rewrite requested URL&amp;#8217;s to &lt;strong&gt;dispatch.fcgi&lt;/strong&gt; unless the requested file already exists on a file system. Let&amp;#8217;s try to configure IIS URL rewrite module to do the same. To do that we will take these scary looking mod_rewrite rules:&lt;/p&gt;
&lt;pre class="code"&gt;# Redirect all requests not available on the filesystem to Rails
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]&lt;/pre&gt;
&lt;p&gt;and import them into IIS by using &amp;#8220;Import Rules&amp;#8221; feature of URL rewrite module:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ruslany.net/wp-content/uploads/2008/08/rorimportrules.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="379" alt="RoRImportRules" src="http://ruslany.net/wp-content/uploads/2008/08/rorimportrules-thumb.png" width="395" border="0"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After saving the converted rules into the web.config file we will need to modify the handler mapping for RoR so that it does not use &amp;#8220;*&amp;#8221; mapping anymore:&lt;/p&gt;
&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;handlers&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;
  &amp;lt;&lt;/span&gt;&lt;span style="color: #a31515"&gt;add &lt;/span&gt;&lt;span style="color: red"&gt;name&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Ruby via FastCGI&lt;/span&gt;"
       &lt;span style="color: red"&gt;path&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;dispatch.fcgi&lt;/span&gt;"
       &lt;span style="color: red"&gt;verb&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;*&lt;/span&gt;"
       &lt;span style="color: red"&gt;modules&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;FastCgiModule&lt;/span&gt;"
       &lt;span style="color: red"&gt;scriptProcessor&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;C:\ruby\bin\ruby.exe|c:\inetpub\ruby\myapp\public\dispatch.fcgi development&lt;/span&gt;"
       &lt;span style="color: red"&gt;resourceType&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Unspecified&lt;/span&gt;" &lt;span style="color: red"&gt;requireAccess&lt;/span&gt;&lt;span style="color: blue"&gt;=&lt;/span&gt;"&lt;span style="color: blue"&gt;Script&lt;/span&gt;" &lt;span style="color: blue"&gt;/&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515"&gt;handlers&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now let&amp;#8217;s test whether these modifications help to resolve the problem with serving static files. First we confirm that the RoR application still works. For that we browse to &lt;strong&gt;http://ruby/test/about&lt;/strong&gt; again:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ruslany.net/wp-content/uploads/2008/08/rortestabout1.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="291" alt="RoRTestAbout" src="http://ruslany.net/wp-content/uploads/2008/08/rortestabout-thumb1.png" width="504" border="0"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then we check if requests for static files are handled correctly. For that we browse to &lt;strong&gt;http://ruby/myapp/public/images/rails.png&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://ruslany.net/wp-content/uploads/2008/08/rorstaticfile.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="331" alt="RoRStaticFile" src="http://ruslany.net/wp-content/uploads/2008/08/rorstaticfile-thumb.png" width="504" border="0"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see the mod_rewrite rules that were imported from &lt;a title="RoR Documentation" href="http://wiki.rubyonrails.com/rails/pages/UnderstandingHowRequestsAreRouted" target="_blank"&gt;RoR documentation&lt;/a&gt; work quite well in IIS. The Ruby on Rails application is fully functional and we did not use any workarounds for that - all the necessary functionality is available in IIS 7.0.&lt;/p&gt;
</description></item><item><title>FastCGI with Ruby on Rails - IIS 5.1 / IIS 6 - Http POST issue.</title><link>http://blogs.iis.net/forums/p/1122392/1755757.aspx#1755757</link><pubDate>Fri, 15 Jun 2007 01:30:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1755757</guid><dc:creator>mspeight</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;&lt;span&gt;I have got IIS and Multiple App&amp;#39;s to talk
using same technique’s as I used with isap_fcgi.dll, all works fine apart from an
intermittent problem.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;After returning data from a POST, the
rubyw.exe process is left in some funny state, and the next request causes
rubyw.exe to exit. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;The same request may work 3 times, then crash
on the 4&lt;sup&gt;th&lt;/sup&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;Steps are as follows&lt;span&gt;&amp;nbsp; &lt;/span&gt;POST -&amp;gt;&lt;span&gt;&amp;nbsp;
&lt;/span&gt;Returns a Redirect -&amp;gt; GET on Redirfect fails to return (ruby.exe
exits) -&amp;gt; Browser has another go new instance of ruby.exe started and page
returned&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;Other Steps are POST -&amp;gt; Returns just
render_text -&amp;gt; Another browser instance goes to url -&amp;gt; No page/error is
returned (i.e. the new request got to rubyw but it crashed)&lt;/span&gt;&lt;/p&gt;





&lt;p class="MsoNormal"&gt;&lt;span&gt;I have duplicated this with a simple form,
that posts and returns itself. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;It seems to be a timing thing, But I cant
figure out the cause.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;PS: I have patched the cgi.rb (To remove the
IIS reference, if you don’t you get random crashes ay any time) &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;Anyone come across this before.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;-----------------&amp;nbsp;&lt;/p&gt;





&lt;p class="MsoNormal"&gt;&lt;span&gt;By set-up is detailed here &lt;a href="http://mspeight.blogspot.com/2007/05/how-to-run-multiple-rails-apps-under.html"&gt;http://mspeight.blogspot.com/2007/05/how-to-run-multiple-rails-apps-under.html&lt;/a&gt;
&lt;span&gt;&amp;nbsp;&lt;/span&gt;(but uses fcgiext.dll instead of &lt;span&gt;&amp;nbsp;&lt;/span&gt;isapi_fcgi.dll).&amp;nbsp; I did need to repatch the
&amp;quot;AbstractRequest:request_uri&amp;quot; differently as this FastCGI does
provide REQUEST_URI&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Directory Listing Denied</title><link>http://blogs.iis.net/forums/p/1115802/1729052.aspx#1729052</link><pubDate>Mon, 28 May 2007 22:26:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1729052</guid><dc:creator>armanddp</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I know this is probably not directly related to the FastCGI handler but after configuring my site in IIS to support Ruby on Rails following the 10 steps instructions over &lt;a href="http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx"&gt;here&lt;/a&gt; I can&amp;#39;t get the default document to work. i.e., when people browse to http://mysite.com/ they get directory listing denied but when browsing to a controller fastcgi kicks in and my Rail application works. &lt;/p&gt;&lt;p&gt;I know I&amp;#39;m missing something obvious but for the life of me can&amp;#39;t get it to serve a default document. I&amp;#39;ve tried various default document combinations. Tried the isapirewrite4 filter to rewrite requests to dispatch.fcgi and in a short ritual offered a small chicken to the web gods but still no luck.&lt;/p&gt;&lt;p&gt;Any suggestions would really be appreciated. (Great work on the fastcgi handler, apart from the default doc issue it seems to be working like a charm)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Cannot disable Ruby logging when using fastcgi?</title><link>http://blogs.iis.net/forums/p/1093992/1646691.aspx#1646691</link><pubDate>Sun, 01 Apr 2007 20:20:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1646691</guid><dc:creator>Stoo</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I'm not sure if the problem I have is something that can be fixed on the fastcgi end of things, but thought I would post to see if anyone else had come across the same issue...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When I set the log_level to :none in my rails app's config, It will not start when running through fastcgi. The rails app will still start from command line Ruby, and will also start using the Mongrel web service gem for Ruby. It only fails when calling it through FastCGI.&lt;/p&gt;&lt;p&gt;If I set the logging to anything other than ":none" (like :info), then everything works just fine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sadly, under windows, Ruby only writes one log file, and never releases the lock on that file until you kill the app... Makes disk space a wee bit of an issue when the site needs to be up 24/7 :-)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any pointers in the right direction greatly appreciated as always. - especially as this may not be something that can be fixed in the fastcgi component!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;S.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Getting Ruby to stay in memory under fastcgi.</title><link>http://blogs.iis.net/forums/p/1086590/1619013.aspx#1619013</link><pubDate>Tue, 13 Mar 2007 22:27:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1619013</guid><dc:creator>Stoo</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;First up, let me just say that this FastCGI for IIS has solved many stability issues that we had with older fastcgi products.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;We do have one last issue to resolve however. We run Ruby on Rails under FastCGI on IIS6.0 (2k3SP1). We also run Postgres on these servers, but nothing else.&lt;/p&gt;&lt;p&gt;When we make our first request to the server, it takes a few seconds for the Rubyw.exe to start up and compile our code. Once it is started, everything appears to be fairly snappy and generally runs well. Our problem is that after around 5 minutes of being idle, the rubyw.exe process terminates. Another one will start as soon as a request is made, but this makes for a fairly slow browsing experience for our users as they often have to wait for the ruby app to "spin up".&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to keep these ruby processes running in memory for a lot longer? I've tried tweaking the "InstanceTimeout" value in fcgiext.ini, but this appears to have no effect whatsoever, and the processes still seem to terminate after about 5 minutes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help, or clues that may lead me in the right direction are muchly appreciated! We've solved so many other problems along the way that we've had, this seems to be the last little hurdle to using this solution in production!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Stoo&lt;/p&gt;&lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>10 steps to get Ruby on Rails running on Windows with IIS FastCGI</title><link>http://blogs.iis.net/mvolo/archive/2007/02/18/10-steps-to-get-ruby-on-rails-running-on-windows-with-iis-fastcgi.aspx</link><pubDate>Sun, 18 Feb 2007 21:20:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1584321</guid><dc:creator>mvolo</dc:creator><cs:applicationKey>mvolo</cs:applicationKey><description>Since the original tech preview release of FastCGI last year, we've been seeing a lot of requests for getting Ruby on Rails running with our FastCGI.&amp;nbsp; So, for FastCGI Tech Preview 2, I spent some time researching what it would take to enable Ruby on Rails, resulting in "experimental" RoR support in the TP2 release.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Without further ado, these are the 10 steps get RoR working with FastCGI TP2 - read more at &lt;A href="http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx&lt;/A&gt;.</description></item><item><title>Where can I find error logs for the FCGI handler</title><link>http://blogs.iis.net/forums/p/1071721/1564713.aspx#1564713</link><pubDate>Mon, 05 Feb 2007 21:53:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1564713</guid><dc:creator>mcmoyer</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I'm currently trying to set up FastCGI with Ruby on rails.&amp;nbsp; I haven't gotten very far :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anyway, I haven't progressed beyond this error message:&lt;/p&gt;&lt;h1&gt; FastCGI Handler Extension &lt;/h1&gt;&lt;p&gt;
&lt;/p&gt;&lt;hr&gt;
Error 0x80004005 occurred processing request.
&lt;br&gt;
&lt;br&gt;
&lt;i&gt;The FastCGI process exited unexpectedly&lt;/i&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm trying to find where the extension might be logging to.&amp;nbsp; Thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Marlon&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Support for other application frameworks</title><link>http://blogs.iis.net/forums/p/1044468/1491271.aspx#1491271</link><pubDate>Fri, 08 Dec 2006 19:10:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1491271</guid><dc:creator>pboling</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Mike,&lt;/p&gt;&lt;p&gt;Thanks for the response!&lt;br&gt;&lt;/p&gt;&lt;p&gt;Before your response I had posted about this to the rails core team mailing list (I am not on the team, just on the list) and it has recieved some response, so you may want to check it out (it's a Google Groups mailing list):&lt;/p&gt;&lt;p&gt;&lt;a href="http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b88ad36ddd82477e" title="IIS &amp;amp; FastCGI thread on rails-core mailing list" target="_blank"&gt;http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b88ad36ddd82477e&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I would love to test, and help however I can.&amp;nbsp; Is there a more recent
version than the 'technical preview' I have already downloaded?&amp;nbsp; I am a
Mac / Linux guy, and am a bit shaky in Windows, but I am deploying my
site on Windows Server 2003 so I need to learn it.&amp;nbsp; Right now I am
using mongrel as the webserver because it 'just works'.&amp;nbsp; But I need to
find a better solution because mongrel has no NTLM authentication module.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Peter&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using DOCUMENT_ROOT in FastCGI environment</title><link>http://blogs.iis.net/forums/p/1041980/1490955.aspx#1490955</link><pubDate>Fri, 08 Dec 2006 14:35:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1490955</guid><dc:creator>pboling</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>The link refers to PHP_AUTH_USER which makes sense for PHP.&amp;nbsp; A more generic term is more common in other frameworks I think.&amp;nbsp; AUTH_USER is what I would expect to use in RubyOnRails, and I think IIS already provides this variable when using NTLM authentication.&amp;nbsp; Making sure that this AUTH_USER is available in the FastCGI environment then, would be appreciated.&lt;br&gt;</description></item><item><title>Re: Support for other application frameworks</title><link>http://blogs.iis.net/forums/p/1044468/1490914.aspx#1490914</link><pubDate>Fri, 08 Dec 2006 13:55:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1490914</guid><dc:creator>pboling</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>Ruby on Rails (http://www.rubyonrails.com/) support would be excellent!&amp;nbsp; I actually need this in production yesterday, so it would be great to get vendor supported FCGI rather than the hacking I'm doing now to make it work (actually it still doesn't work and I may have to switch to Apache.)</description></item></channel></rss>