Hey all, Has anyone had success with setting up rails using Windows 2000 server and IIS 5? I''m just short of pulling out my hair and teeth on this one. Here is exactly what I''ve done thus far. Any help would be greatly, greatly appreciated, and I promise to write all this in the wiki once I figure everything out. Basically I used a combination of the only two known articles on setting up rails on IIS - http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 and http://bitmask.co.uk/ruby-on-rails.html Step 1. Install one-click-ruby installer Step 2. gem install rails Step 3. Install ISAPI_rewrite (www.isapirewrite.com) Step 4. install apache 2.0 (not used, only for fastcgi bindings) Step 5. install RubyForApache Step 6. Exract FastCGI for ISAPI/NSAPI (http://www.caraveo.com/fastcgi/) to c:/fastcgi Step 7. rails my_test_app (create rails application) Step 8. Set up new website using IIS (kept all the defaults) and point the home directory to c:/my_test_app/public Step 9. Create httpd.ini file in c:/my_test_app/public with the following: [ISAPI_Rewrite] RepeatLimit 0 RewriteRule ^(/[^.]*)$ /dispatch.fcgi?$1 [L] Step 10. In IIS Admin - Home Directory - Configuration, add a new Application Extension Mapping with Executable c:/fastcgi/isapi_fcgi.dll, Extension = .fcgi Step 11. In windows Registry, create the following: HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/AppPath HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/Args HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/BindPath and here are the strings for AppPath, Args, and BindPath AppPath: c:\ruby\bin\rubyw.exe Args: c:\my_test_app\public\dispatch.fcgi BindPath: rails-fcgi (arbitrary) rebooted the machine and restarted IIS. Now here comes the hard part. There are no error messages. the logs in rails have nothing in them. An httpd.ini.parse.errors log is generated in the public directory, but there is nothing in there, which leads me to believe the isapi rewrite might be ok. In the IIS logs, which is the only place I see some activity, two different things happen. If I access 127.0.0.1 (should bring up the "Congrats, you''ve put on ruby on rails!" page) I get a GET /dispatch.fcgi which returns a 400 error (and the IIS 400 error page) If I access 127.0.0.1/test (test controller), I get a GET /dispatch.fcgi which return a 4040 (and the IIS 404 error page) And that''s just about every bit of info I can give you guys. I dont know where I went wrong, but I feel close. IIS is trying to GET dispatch.fcgi but it says not found, which I don''t understand because the home directory is set to the public directory of the rails app. Please, any help on this would be greatly appreciated. Thanks again, Jin Lee
Hi Jin, Did you try the instructions on http://bitmask.co.uk/ruby-on-rails.html? More specifaclly the instructions on tweaking the rails routing. It seems those are the main thing to get it working with IIS5. Regards, Boris -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jin Lee Sent: donderdag 7 juli 2005 19:12 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] win2000 + IIS 5 woes Hey all, Has anyone had success with setting up rails using Windows 2000 server and IIS 5? I''m just short of pulling out my hair and teeth on this one. Here is exactly what I''ve done thus far. Any help would be greatly, greatly appreciated, and I promise to write all this in the wiki once I figure everything out. Basically I used a combination of the only two known articles on setting up rails on IIS - http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 and http://bitmask.co.uk/ruby-on-rails.html Step 1. Install one-click-ruby installer Step 2. gem install rails Step 3. Install ISAPI_rewrite (www.isapirewrite.com) Step 4. install apache 2.0 (not used, only for fastcgi bindings) Step 5. install RubyForApache Step 6. Exract FastCGI for ISAPI/NSAPI (http://www.caraveo.com/fastcgi/) to c:/fastcgi Step 7. rails my_test_app (create rails application) Step 8. Set up new website using IIS (kept all the defaults) and point the home directory to c:/my_test_app/public Step 9. Create httpd.ini file in c:/my_test_app/public with the following: [ISAPI_Rewrite] RepeatLimit 0 RewriteRule ^(/[^.]*)$ /dispatch.fcgi?$1 [L] Step 10. In IIS Admin - Home Directory - Configuration, add a new Application Extension Mapping with Executable = c:/fastcgi/isapi_fcgi.dll, Extension = .fcgi Step 11. In windows Registry, create the following: HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/AppPath HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/Args HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/BindPath and here are the strings for AppPath, Args, and BindPath AppPath: c:\ruby\bin\rubyw.exe Args: c:\my_test_app\public\dispatch.fcgi BindPath: rails-fcgi (arbitrary) rebooted the machine and restarted IIS. Now here comes the hard part. There are no error messages. the logs in rails have nothing in them. An httpd.ini.parse.errors log is generated in the public directory, but there is nothing in there, which leads me to believe the isapi rewrite might be ok. In the IIS logs, which is the only place I see some activity, two different things happen. If I access 127.0.0.1 (should bring up the "Congrats, you''ve put on ruby on rails!" page) I get a GET /dispatch.fcgi which returns a 400 error (and the IIS 400 error page) If I access 127.0.0.1/test (test controller), I get a GET /dispatch.fcgi which return a 4040 (and the IIS 404 error page) And that''s just about every bit of info I can give you guys. I dont know where I went wrong, but I feel close. IIS is trying to GET dispatch.fcgi but it says not found, which I don''t understand because the home directory is set to the public directory of the rails app. Please, any help on this would be greatly appreciated. Thanks again, Jin Lee _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Jin I had this same problem, and it turned out that my rubyforapache install didn''t finish properly. To get round this I had to reboot in safe mode, then run the install again... and SUCCESS! I couldn''t belive it! -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jin Lee Sent: Thursday, July 07, 2005 6:12 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] win2000 + IIS 5 woes Hey all, Has anyone had success with setting up rails using Windows 2000 server and IIS 5? I''m just short of pulling out my hair and teeth on this one. Here is exactly what I''ve done thus far. Any help would be greatly, greatly appreciated, and I promise to write all this in the wiki once I figure everything out. Basically I used a combination of the only two known articles on setting up rails on IIS - http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 and http://bitmask.co.uk/ruby-on-rails.html Step 1. Install one-click-ruby installer Step 2. gem install rails Step 3. Install ISAPI_rewrite (www.isapirewrite.com) Step 4. install apache 2.0 (not used, only for fastcgi bindings) Step 5. install RubyForApache Step 6. Exract FastCGI for ISAPI/NSAPI (http://www.caraveo.com/fastcgi/) to c:/fastcgi Step 7. rails my_test_app (create rails application) Step 8. Set up new website using IIS (kept all the defaults) and point the home directory to c:/my_test_app/public Step 9. Create httpd.ini file in c:/my_test_app/public with the following: [ISAPI_Rewrite] RepeatLimit 0 RewriteRule ^(/[^.]*)$ /dispatch.fcgi?$1 [L] Step 10. In IIS Admin - Home Directory - Configuration, add a new Application Extension Mapping with Executable c:/fastcgi/isapi_fcgi.dll, Extension = .fcgi Step 11. In windows Registry, create the following: HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/AppPath HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/Args HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/BindPath and here are the strings for AppPath, Args, and BindPath AppPath: c:\ruby\bin\rubyw.exe Args: c:\my_test_app\public\dispatch.fcgi BindPath: rails-fcgi (arbitrary) rebooted the machine and restarted IIS. Now here comes the hard part. There are no error messages. the logs in rails have nothing in them. An httpd.ini.parse.errors log is generated in the public directory, but there is nothing in there, which leads me to believe the isapi rewrite might be ok. In the IIS logs, which is the only place I see some activity, two different things happen. If I access 127.0.0.1 (should bring up the "Congrats, you''ve put on ruby on rails!" page) I get a GET /dispatch.fcgi which returns a 400 error (and the IIS 400 error page) If I access 127.0.0.1/test (test controller), I get a GET /dispatch.fcgi which return a 4040 (and the IIS 404 error page) And that''s just about every bit of info I can give you guys. I dont know where I went wrong, but I feel close. IIS is trying to GET dispatch.fcgi but it says not found, which I don''t understand because the home directory is set to the public directory of the rails app. Please, any help on this would be greatly appreciated. Thanks again, Jin Lee _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Posting to list as well.. any help appreciated On 7/13/05, Jin Lee <jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Boris, > > What a coincidence, I was just about to revive this thread =) > > Well, my 2003 server box is up and running great via you directions. > This box is for a different client. > > My main client uses 2000server, and I''m still having problems with > setting IIS up. Right now, I''m faking it by using webrick, but I > really need to find a solution fast. > > I did get some more progress though. I turned on logging in my isapi > rewrite filter and it looks like the requests are being passed to > dispatch.fcgi, but after that something is failing. When I go to the > root of the app ( / ), I get a 403 from IIS and when I go to a test > controller, one of many things occur. Sometimes I get a 403, sometimes > I get a IIS Application error, and sometimes I get a 403.1 error. > > I don''t have the logs on me, but when I head in to work I will paste the logs. > > Jin > > On 7/13/05, Boris <boris-OWJDjcdC7C/2dWTfsa9fiw@public.gmane.org> wrote: > > Hi Jin, > > > > Just curious, how dit things work out for you? > > > > Best regards, Boris > > > > -----Original Message----- > > From: Jin Lee [mailto:jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] > > Sent: donderdag 7 juli 2005 22:47 > > To: Boris > > Subject: Re: [Rails] win2000 + IIS 5 woes > > > > Boris, > > > > Sorry... didnt realize you were the bitslapped guy! hehe > > > > Now I will definitely give it a shot =) > > > > Jin > > > > On 7/7/05, Jin Lee <jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Boris, > > > I thought those routing tweaks were not necessary anymore since rails > > > 0.12, but I could be wrong. If you look at the bitslapped article, it > > > doesn''t have any routing tweaks. But as always, I could be wrong :) > > > > > > Will give it a shot though, thanks for the heads up > > > > > > Jin > > > > > > On 7/7/05, Boris <boris-OWJDjcdC7C/2dWTfsa9fiw@public.gmane.org> wrote: > > > > Hi Jin, > > > > > > > > Did you try the instructions on http://bitmask.co.uk/ruby-on-rails.html? > > > > More specifaclly the instructions on tweaking the rails routing. It > > > > seems those are the main thing to get it working with IIS5. > > > > > > > > Regards, Boris > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jin Lee > > > > Sent: donderdag 7 juli 2005 19:12 > > > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > Subject: [Rails] win2000 + IIS 5 woes > > > > > > > > Hey all, > > > > > > > > Has anyone had success with setting up rails using Windows 2000 > > > > server and IIS 5? I''m just short of pulling out my hair and teeth on > > this one. > > > > > > > > Here is exactly what I''ve done thus far. Any help would be greatly, > > > > greatly appreciated, and I promise to write all this in the wiki > > > > once I figure everything out. Basically I used a combination of the > > > > only two known articles on setting up rails on IIS - > > > > http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 > > > > and http://bitmask.co.uk/ruby-on-rails.html > > > > > > > > Step 1. Install one-click-ruby installer Step 2. gem install rails Step > > 3. > > > > Install ISAPI_rewrite (www.isapirewrite.com) Step 4. install apache > > > > 2.0 (not used, only for fastcgi bindings) Step 5. install RubyForApache > > Step 6. > > > > Exract FastCGI for ISAPI/NSAPI > > > > (http://www.caraveo.com/fastcgi/) to c:/fastcgi Step 7. rails > > > > my_test_app (create rails application) Step 8. Set up new website > > > > using IIS (kept all the defaults) and point the home directory to > > c:/my_test_app/public Step 9. > > > > Create httpd.ini file in c:/my_test_app/public with the following: > > > > [ISAPI_Rewrite] > > > > RepeatLimit 0 > > > > RewriteRule ^(/[^.]*)$ /dispatch.fcgi?$1 [L] Step 10. In IIS Admin - > > > > Home Directory - Configuration, add a new Application Extension > > > > Mapping with Executable = c:/fastcgi/isapi_fcgi.dll, Extension > > > > .fcgi Step 11. In windows Registry, create the following: > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/AppPath > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/Args > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/BindPath > > > > > > > > and here are the strings for AppPath, Args, and BindPath > > > > AppPath: c:\ruby\bin\rubyw.exe > > > > Args: c:\my_test_app\public\dispatch.fcgi > > > > BindPath: rails-fcgi (arbitrary) > > > > > > > > rebooted the machine and restarted IIS. > > > > > > > > Now here comes the hard part. There are no error messages. the logs > > > > in rails have nothing in them. An httpd.ini.parse.errors log is > > > > generated in the public directory, but there is nothing in there, > > > > which leads me to believe the isapi rewrite might be ok. > > > > > > > > In the IIS logs, which is the only place I see some activity, two > > > > different things happen. > > > > > > > > If I access 127.0.0.1 (should bring up the "Congrats, you''ve put on > > > > ruby on rails!" page) I get a GET /dispatch.fcgi which returns a 400 > > > > error (and the IIS 400 error page) If I access 127.0.0.1/test (test > > > > controller), I get a GET /dispatch.fcgi which return a 4040 (and the > > > > IIS 404 error page) > > > > > > > > And that''s just about every bit of info I can give you guys. I dont > > > > know where I went wrong, but I feel close. IIS is trying to GET > > > > dispatch.fcgi but it says not found, which I don''t understand > > > > because the home directory is set to the public directory of the rails > > app. > > > > > > > > Please, any help on this would be greatly appreciated. > > > > Thanks again, > > > > Jin Lee > > > > _______________________________________________ > > > > Rails mailing list > > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > > > > > > > > > > > >
Here is the logs of me playing around and trying to get it to work. THis is the ionic isapi rewrite log: Tue Jul 12 16:07:52 2005 - Logging at level=2, file=''C:\tools\IonicIsapiRewriter1.0\Log-Isapi-Rewriter.txt'' Tue Jul 12 16:07:52 2005 - DllMain (PROCESS_ATTACH) Tue Jul 12 16:07:52 2005 - target ini file: ''C:\tools\IonicIsapiRewriter1.0\IsapiRewrite4.ini'' Tue Jul 12 16:07:52 2005 - GetFilterVersion Tue Jul 12 16:07:55 2005 - HttpFilterProc Tue Jul 12 16:07:55 2005 - Initialize Tue Jul 12 16:07:55 2005 - ReadConfig Tue Jul 12 16:07:55 2005 - setting Iteration Limit to 0 Tue Jul 12 16:07:55 2005 - ini file line 2: RewriteRule ^(/[^.]+)$ /dispatch.fcgi?$1 (null) Tue Jul 12 16:07:55 2005 - Found 1 rules (0 failed) on 3 lines Tue Jul 12 16:07:55 2005 - PreProcessHeaders Tue Jul 12 16:07:55 2005 - Url is: ''/portal'' Tue Jul 12 16:07:55 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:07:55 2005 - Iteration stopped (reached limit). Tue Jul 12 16:07:55 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:07:59 2005 - HttpFilterProc Tue Jul 12 16:07:59 2005 - PreProcessHeaders Tue Jul 12 16:07:59 2005 - Url is: ''/'' Tue Jul 12 16:07:59 2005 - Pattern 1 (^(/[^.]+)$): No Match Tue Jul 12 16:07:59 2005 - No Rewrite Tue Jul 12 16:08:02 2005 - HttpFilterProc Tue Jul 12 16:08:02 2005 - PreProcessHeaders Tue Jul 12 16:08:02 2005 - Url is: ''/portal'' Tue Jul 12 16:08:02 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:08:02 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:02 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:08:03 2005 - HttpFilterProc Tue Jul 12 16:08:03 2005 - PreProcessHeaders Tue Jul 12 16:08:03 2005 - Url is: ''/portal'' Tue Jul 12 16:08:03 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:08:03 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:03 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:08:05 2005 - HttpFilterProc Tue Jul 12 16:08:05 2005 - PreProcessHeaders Tue Jul 12 16:08:05 2005 - Url is: ''/portal'' Tue Jul 12 16:08:05 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:08:05 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:05 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:08:16 2005 - HttpFilterProc Tue Jul 12 16:08:16 2005 - PreProcessHeaders Tue Jul 12 16:08:16 2005 - Url is: ''/portal'' Tue Jul 12 16:08:16 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:08:16 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:16 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:08:31 2005 - HttpFilterProc Tue Jul 12 16:08:31 2005 - PreProcessHeaders Tue Jul 12 16:08:31 2005 - Url is: ''/'' Tue Jul 12 16:08:31 2005 - Pattern 1 (^(/[^.]+)$): No Match Tue Jul 12 16:08:31 2005 - No Rewrite Tue Jul 12 16:08:34 2005 - HttpFilterProc Tue Jul 12 16:08:34 2005 - PreProcessHeaders Tue Jul 12 16:08:34 2005 - Url is: ''/portal'' Tue Jul 12 16:08:34 2005 - Result: /dispatch.fcgi?/portal Tue Jul 12 16:08:34 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:34 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal'' Tue Jul 12 16:08:37 2005 - HttpFilterProc Tue Jul 12 16:08:37 2005 - PreProcessHeaders Tue Jul 12 16:08:37 2005 - Url is: ''/portal/'' Tue Jul 12 16:08:37 2005 - Result: /dispatch.fcgi?/portal/ Tue Jul 12 16:08:37 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:37 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal/'' Tue Jul 12 16:08:40 2005 - HttpFilterProc Tue Jul 12 16:08:40 2005 - PreProcessHeaders Tue Jul 12 16:08:40 2005 - Url is: ''/portal/index'' Tue Jul 12 16:08:40 2005 - Result: /dispatch.fcgi?/portal/index Tue Jul 12 16:08:40 2005 - Iteration stopped (reached limit). Tue Jul 12 16:08:40 2005 - Rewrite Url to: ''/dispatch.fcgi?/portal/index'' Additionally, here is the IIS logs. Note the strange behavior #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2005-07-12 23:07:55 #Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent) 2005-07-12 23:07:55 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:07:59 127.0.0.1 - 127.0.0.1 9000 GET / - 403 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:02 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:03 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:05 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:16 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:31 127.0.0.1 - 127.0.0.1 9000 GET / - 403 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:34 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:37 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal/ 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 2005-07-12 23:08:40 127.0.0.1 - 127.0.0.1 9000 GET /dispatch.fcgi /portal/index 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) Hope this helps... and any help would be greatly appreciated. Jin On 7/13/05, Jin Lee <jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Posting to list as well.. any help appreciated > > On 7/13/05, Jin Lee <jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Boris, > > > > What a coincidence, I was just about to revive this thread =) > > > > Well, my 2003 server box is up and running great via you directions. > > This box is for a different client. > > > > My main client uses 2000server, and I''m still having problems with > > setting IIS up. Right now, I''m faking it by using webrick, but I > > really need to find a solution fast. > > > > I did get some more progress though. I turned on logging in my isapi > > rewrite filter and it looks like the requests are being passed to > > dispatch.fcgi, but after that something is failing. When I go to the > > root of the app ( / ), I get a 403 from IIS and when I go to a test > > controller, one of many things occur. Sometimes I get a 403, sometimes > > I get a IIS Application error, and sometimes I get a 403.1 error. > > > > I don''t have the logs on me, but when I head in to work I will paste the logs. > > > > Jin > > > > On 7/13/05, Boris <boris-OWJDjcdC7C/2dWTfsa9fiw@public.gmane.org> wrote: > > > Hi Jin, > > > > > > Just curious, how dit things work out for you? > > > > > > Best regards, Boris > > > > > > -----Original Message----- > > > From: Jin Lee [mailto:jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] > > > Sent: donderdag 7 juli 2005 22:47 > > > To: Boris > > > Subject: Re: [Rails] win2000 + IIS 5 woes > > > > > > Boris, > > > > > > Sorry... didnt realize you were the bitslapped guy! hehe > > > > > > Now I will definitely give it a shot =) > > > > > > Jin > > > > > > On 7/7/05, Jin Lee <jinslee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Boris, > > > > I thought those routing tweaks were not necessary anymore since rails > > > > 0.12, but I could be wrong. If you look at the bitslapped article, it > > > > doesn''t have any routing tweaks. But as always, I could be wrong :) > > > > > > > > Will give it a shot though, thanks for the heads up > > > > > > > > Jin > > > > > > > > On 7/7/05, Boris <boris-OWJDjcdC7C/2dWTfsa9fiw@public.gmane.org> wrote: > > > > > Hi Jin, > > > > > > > > > > Did you try the instructions on http://bitmask.co.uk/ruby-on-rails.html? > > > > > More specifaclly the instructions on tweaking the rails routing. It > > > > > seems those are the main thing to get it working with IIS5. > > > > > > > > > > Regards, Boris > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jin Lee > > > > > Sent: donderdag 7 juli 2005 19:12 > > > > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > Subject: [Rails] win2000 + IIS 5 woes > > > > > > > > > > Hey all, > > > > > > > > > > Has anyone had success with setting up rails using Windows 2000 > > > > > server and IIS 5? I''m just short of pulling out my hair and teeth on > > > this one. > > > > > > > > > > Here is exactly what I''ve done thus far. Any help would be greatly, > > > > > greatly appreciated, and I promise to write all this in the wiki > > > > > once I figure everything out. Basically I used a combination of the > > > > > only two known articles on setting up rails on IIS - > > > > > http://www.bitslapped.nl/articles/2005/06/05/rails-on-windows-2003 > > > > > and http://bitmask.co.uk/ruby-on-rails.html > > > > > > > > > > Step 1. Install one-click-ruby installer Step 2. gem install rails Step > > > 3. > > > > > Install ISAPI_rewrite (www.isapirewrite.com) Step 4. install apache > > > > > 2.0 (not used, only for fastcgi bindings) Step 5. install RubyForApache > > > Step 6. > > > > > Exract FastCGI for ISAPI/NSAPI > > > > > (http://www.caraveo.com/fastcgi/) to c:/fastcgi Step 7. rails > > > > > my_test_app (create rails application) Step 8. Set up new website > > > > > using IIS (kept all the defaults) and point the home directory to > > > c:/my_test_app/public Step 9. > > > > > Create httpd.ini file in c:/my_test_app/public with the following: > > > > > [ISAPI_Rewrite] > > > > > RepeatLimit 0 > > > > > RewriteRule ^(/[^.]*)$ /dispatch.fcgi?$1 [L] Step 10. In IIS Admin - > > > > > Home Directory - Configuration, add a new Application Extension > > > > > Mapping with Executable = c:/fastcgi/isapi_fcgi.dll, Extension > > > > > .fcgi Step 11. In windows Registry, create the following: > > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI > > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi > > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/AppPath > > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/Args > > > > > HKEY_LOCAL_MACHINE/SOFTWARE/FASTCGI/.fcgi/BindPath > > > > > > > > > > and here are the strings for AppPath, Args, and BindPath > > > > > AppPath: c:\ruby\bin\rubyw.exe > > > > > Args: c:\my_test_app\public\dispatch.fcgi > > > > > BindPath: rails-fcgi (arbitrary) > > > > > > > > > > rebooted the machine and restarted IIS. > > > > > > > > > > Now here comes the hard part. There are no error messages. the logs > > > > > in rails have nothing in them. An httpd.ini.parse.errors log is > > > > > generated in the public directory, but there is nothing in there, > > > > > which leads me to believe the isapi rewrite might be ok. > > > > > > > > > > In the IIS logs, which is the only place I see some activity, two > > > > > different things happen. > > > > > > > > > > If I access 127.0.0.1 (should bring up the "Congrats, you''ve put on > > > > > ruby on rails!" page) I get a GET /dispatch.fcgi which returns a 400 > > > > > error (and the IIS 400 error page) If I access 127.0.0.1/test (test > > > > > controller), I get a GET /dispatch.fcgi which return a 4040 (and the > > > > > IIS 404 error page) > > > > > > > > > > And that''s just about every bit of info I can give you guys. I dont > > > > > know where I went wrong, but I feel close. IIS is trying to GET > > > > > dispatch.fcgi but it says not found, which I don''t understand > > > > > because the home directory is set to the public directory of the rails > > > app. > > > > > > > > > > Please, any help on this would be greatly appreciated. > > > > > Thanks again, > > > > > Jin Lee > > > > > _______________________________________________ > > > > > Rails mailing list > > > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >