it''s been a nightmare trying to set it up. I keep getting a an Application Error message when I try to navigate to a url which should be taken care of by my newly created controllers. For instance, I wanted to test RoR out so I created a MyTest controller which should allow me to navigate something like: http://localhost/rubytest/MyTest but it does not. I have no problem getting the initial ''Welcome'' message located in the /public/ folder but anything else I try fails. I have modified my http.conf file in Apache to add a virtual server for my ruby app including adding the LoadModule directive for fastcgi. I have modified the .htaccess file in the /public/ folder to change the .cgi to .fcgi but nothing is making it work. I think I may stick with PHP (takes all of 5 minutes to setup). John -- Posted via http://www.ruby-forum.com/.
Hi John, The Apache setup for RoR can be a bit tedious and is one of the areas that needs improvement. What operating system are you using? The reason I ask is that for Mac there is Locomotive to get you up and running quickly. I have found that for Windows it is much easier to develop using Webrick, by running the command ''ruby script\server'' from the root of your project. Your project will then be available at http://localhost:3000. Lighttpd is another route you could try that is easier to configure than the Apache setup. Good Luck, Tom On 12/16/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote:> it''s been a nightmare trying to set it up. I keep getting a an > Application Error message when I try to navigate to a url which should > be taken care of by my newly created controllers. For instance, I > wanted to test RoR out so I created a MyTest controller which should > allow me to navigate something like: > > http://localhost/rubytest/MyTest > > but it does not. I have no problem getting the initial ''Welcome'' > message located in the /public/ folder but anything else I try fails. > > I have modified my http.conf file in Apache to add a virtual server for > my ruby app including adding the LoadModule directive for fastcgi. > > I have modified the .htaccess file in the /public/ folder to change the > .cgi to .fcgi but nothing is making it work. > > I think I may stick with PHP (takes all of 5 minutes to setup). > > John > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
John Smith <john.smith@...> writes:> > it''s been a nightmare trying to set it up. I keep getting a an > Application Error message when I try to navigate to a url which should > be taken care of by my newly created controllers. For instance, I > [...] > > I think I may stick with PHP (takes all of 5 minutes to setup).+1 Agree. I don''t know what platform John is working with, but on Windows/IIS it is exceedingly difficult. There is a lot of info on the web for setting up a Rails environment under Windows 2003/IIS 6.0, but many of the sites have conflicting information on the process, or worse, things like "this is broken right now," or "i''m not sure how to get this part to work." Those of us who do not have the luxury of a Unix setup, or even the ability to install a Windows version of Apache are pretty much out of luck. Correct me if I''m wrong but so far, there does not exist a document detailing the setup of Rails on a Windows 2k3/IIS6 production environment with the following restrictions: * No Apache allowed * No InstantRails allowed * No Linux-in-a-Window allowed * No VMware/VirtualPC/emulation allowed Basically, the only non-MS software allowed on the server is Ruby and the Rails libraries. Any takers? Lester
Hey John, We could probably offer more help to you if we knew what platform you were running on. You should probably try using script/server first and checking the log files. Post a little more information and I am sure someone here can put you on the right path. -- Owen On Fri, Dec 16, 2005 at 09:01:54PM +0100, John Smith wrote:> it''s been a nightmare trying to set it up. I keep getting a an > Application Error message when I try to navigate to a url which should > be taken care of by my newly created controllers. For instance, I > wanted to test RoR out so I created a MyTest controller which should > allow me to navigate something like: > > http://localhost/rubytest/MyTest > > but it does not. I have no problem getting the initial ''Welcome'' > message located in the /public/ folder but anything else I try fails. > > I have modified my http.conf file in Apache to add a virtual server for > my ruby app including adding the LoadModule directive for fastcgi. > > I have modified the .htaccess file in the /public/ folder to change the > .cgi to .fcgi but nothing is making it work. > > I think I may stick with PHP (takes all of 5 minutes to setup). > > John
> The Apache setup for RoR can be a bit tedious and is one of the areas > that needs improvement. What operating system are you using? The > reason I ask is that for Mac there is Locomotive to get you up and > running quickly. > > I have found that for Windows it is much easier to develop using > Webrick, by running the command ''ruby script\server'' from the root of > your project. Your project will then be available at > http://localhost:3000. > > Lighttpd is another route you could try that is easier to configure > than the Apache setup.For Windows I''d highly suggest Instant Rails [1]. I personally use Darwin Ports [2] to compile my own version of ruby on my Mac. Being a complete mac newb (having just switched from windows), I was able to build my own Ruby, postgresql, fastcgi, and lighttpd. If you must use Apache for whatever reason, I hear folks are having success with SCGI [3]. Though I had little experience setting up Apache beyond modifying .htaccess files, I was able to get up and running in lighttpd fairly quickly. Good luck with your new setup... Hopefully by v5.0 Rails will have a painless setup story too :) 1. http://instantrails.rubyforge.org/. 2. http://wiki.rubyonrails.com/rails/pages/HowtoInstallOnOSXTigerUsingDarwinPorts 3. http://www.zedshaw.com/projects/scgi_rails/ -- rick http://techno-weenie.net
on GNU, BSD and darwin boxes you can use this : server.port = 8080 server.bind = "localhost" server.event-handler = "freebsd-kqueue" server.username = "www" server.groupname = "www" server.document-root = "path_to_public_dir" server.errorlog = "path_to_server.log" server.modules = ( "mod_rewrite", "mod_fastcgi" ) server.indexfiles = ( "dispatch.fcgi", "index.php", "index.html" ) # rails stuff server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => "/tmp/dev.socket", "bin-path" => "path_to_dispatch.fcgi", "max-procs" => 5, "min-procs" => 1, "bin-environment" => ( "RAILS_ENV" => "development" ) ) ) ) # mimetype mapping mimetype.assign = ( ".pdf" => "application/pdf", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".html" => "text/html", ".txt" => "text/plain", ".css" => "text/css", ) It''s a lighttpd.conf file I''ve found on the web and tweaked. Note : it takes me 5 minutes to bring a rails host up. So I don''t think your comparison is usefull. You just lack knowledge and practice, Rails''s something new for you, you''ll learn. For windows I think there is Instant Rails to try Rails out : http://weblog.rubyonrails.com/articles/2005/10/14/instant-rails-ruby-rails-apache-and-mysql-package-for-windows On 12/16/05, Tom Davies <atomgiant-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi John, > > The Apache setup for RoR can be a bit tedious and is one of the areas > that needs improvement. What operating system are you using? The > reason I ask is that for Mac there is Locomotive to get you up and > running quickly. > > I have found that for Windows it is much easier to develop using > Webrick, by running the command ''ruby script\server'' from the root of > your project. Your project will then be available at > http://localhost:3000. > > Lighttpd is another route you could try that is easier to configure > than the Apache setup. > > Good Luck, > Tom > > On 12/16/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote: > > it''s been a nightmare trying to set it up. I keep getting a an > > Application Error message when I try to navigate to a url which should > > be taken care of by my newly created controllers. For instance, I > > wanted to test RoR out so I created a MyTest controller which should > > allow me to navigate something like: > > > > http://localhost/rubytest/MyTest > > > > but it does not. I have no problem getting the initial ''Welcome'' > > message located in the /public/ folder but anything else I try fails. > > > > I have modified my http.conf file in Apache to add a virtual server for > > my ruby app including adding the LoadModule directive for fastcgi. > > > > I have modified the .htaccess file in the /public/ folder to change the > > .cgi to .fcgi but nothing is making it work. > > > > I think I may stick with PHP (takes all of 5 minutes to setup). > > > > John > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Thom/ange http://ange.librium.org
On Fri, 2005-12-16 at 21:01 +0100, John Smith wrote:> it''s been a nightmare trying to set it up. I keep getting a an > Application Error message when I try to navigate to a url which should > be taken care of by my newly created controllers. For instance, I > wanted to test RoR out so I created a MyTest controller which should > allow me to navigate something like: > > http://localhost/rubytest/MyTest > > but it does not. I have no problem getting the initial ''Welcome'' > message located in the /public/ folder but anything else I try fails. > > I have modified my http.conf file in Apache to add a virtual server for > my ruby app including adding the LoadModule directive for fastcgi. > > I have modified the .htaccess file in the /public/ folder to change the > .cgi to .fcgi but nothing is making it work. > > I think I may stick with PHP (takes all of 5 minutes to setup). > > JohnJohn, The first thing that comes to mind is that rails does some magic with urls. If your controller is named MyTestController, and you have your server set up to host rails in /rubytest, then the correct URL is: http://localhost/rubytest/my_test By default, it will pick that up as an action named index (/my_test/index is equivalent) so your controller needs an index method to handle that request. - Jamie
Well thank you all for taking the time to reply, I will try to give you guys a better idea of where I am at and what platform/settings I am running. I am using WindowsXP Pro with Apache 2.something and MySQL. I followed the directions on this site: http://wiki.rubyonrails.com/rails/pages/RailsOnWindows but they did not seem to work. I did change all the settings to reflect my file structure and such. And I agree with the post above (Lester) regarding conflicting information. After the failed attempt with the above link I tried googling but came across the same conundrum of competing installation instructions (one will have you add something to the http.conf file others will not). And to Jamie. I will have to try what you indicated. I had been using http://localhost/rubytest/mytest w/o the underscore as I was following along with this -> http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2 <- tutorial which did not have it. If this works then all my frustrations were not the result of RoR but of a typo in a relatively old tutorial (and I apologize if this is the case). John -- Posted via http://www.ruby-forum.com/.
On Fri, 2005-12-16 at 23:00 +0100, John Smith wrote:> And to Jamie. I will have to try what you indicated. I had been using > http://localhost/rubytest/mytest w/o the underscore as I was following > along with this -> > http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2 <- > tutorial which did not have it. If this works then all my frustrations > were not the result of RoR but of a typo in a relatively old tutorial > (and I apologize if this is the case).Heh, his links and screenshots disagree on what the URL should be, and it wouldn''t surprise me if things have changed between whatever version of Rails he''s using and the current version. If you want to look at some of the magic transforms that rails does, look up Inflector in the docs. - Jamie
This should pretty much work. http://www.zedshaw.com/projects/scgi_rails/ Neither did I have much trouble getting fcgi to work on winxp + apache2. Well.. maybe i did have to go through much trouble, but i succeeded. However I''m not sure what guide i used. I''ve bookmarked both http://electricvisions.com/rails.html and http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows. Anyway, nowadays I don''t bother using apache anymore. My target machine is linux anyway, and radrails integration of webrick suits me well enough for development. -- Posted via http://www.ruby-forum.com/.
You know, there are just some things that can''t be done. Imagine if someone came to you and said, "Ok, you can build a boat out of wood, but you can''t use nails, glue, straps, sealant, rudders or sails. Go to it." You''re just gonna build a sinking ship. I find when such arbitrary restrictions are being made on a technology solution it''s usually because of politics, fighting, and other aspects of organizational culture typical of places that put more emphasis on being right and less on evidence and cooperation. This is especially true in government where you''re told you can''t use a technology because it''s "not secure", but then everyone uses telnet to get to personnel data on the VAX. Additionally, if these restrictions are placed by some psuedo-security expert sysadmin type then I''m betting it''s a unilateral decision by this one person to protect his little kingdom, and not based on any set policy from management. If you were interested in getting this resolved you should consider having your management create an official security policy that outlines this very restriction, get them to sign off on it, and then begin to enforce it on all systems and personnel. You''ll very quickly find that the same sysadmin who made these decisions is in direct violation of this policy. If this is a policy set by management, then an correctly written policy should include provisions for an exceptional case policy so that new technologies can be used and the organization doesn''t stagnate. The need to adapt to changing technology is crucial, especially when it''s possible that previously restricted technologies could improve systems management and security. Otherwise, you''re totally screwed. :-) Zed A. Shaw http://www.zedshaw.com/ On Fri, Dec 16, 2005 at 08:47:14PM +0000, lester bangs wrote:> John Smith <john.smith@...> writes: ><snip>> Rails on a Windows 2k3/IIS6 production environment with the following > restrictions: > > * No Apache allowed > * No InstantRails allowed > * No Linux-in-a-Window allowed > * No VMware/VirtualPC/emulation allowed > > Basically, the only non-MS software allowed on the server is Ruby and the Rails > libraries. > > Any takers? > > Lester > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I''ll point you both to http://wiki.rubyonrails.com/rails/pages/HowtoSetupIIS It is possible to setup rails with windows with no apache/cygwin/unix type things of anything. I will say that setting up IIS to talk to rails is a process of trial and error. There are a lot of little things that can go wrong, but it does work. I''ve setup several environments with 2003 and IIS. One thing to note. My final choice of production of env on windows was Apache and FCGI. Setting this up is trivial compared to IIS, and seems to be more well tested then the IIS setup. -Nick On 12/16/05, lester bangs <dumpingrounds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> John Smith <john.smith@...> writes: > > > > > it''s been a nightmare trying to set it up. I keep getting a an > > Application Error message when I try to navigate to a url which should > > be taken care of by my newly created controllers. For instance, I > > [...] > > > > I think I may stick with PHP (takes all of 5 minutes to setup). > > +1 Agree. I don''t know what platform John is working with, but on Windows/IIS > it is exceedingly difficult. There is a lot of info on the web for setting up > a Rails environment under Windows 2003/IIS 6.0, but many of the sites have > conflicting information on the process, or worse, things like "this is broken > right now," or "i''m not sure how to get this part to work." > > Those of us who do not have the luxury of a Unix setup, or even the ability to > install a Windows version of Apache are pretty much out of luck. Correct me if > I''m wrong but so far, there does not exist a document detailing the setup of > Rails on a Windows 2k3/IIS6 production environment with the following > restrictions: > > * No Apache allowed > * No InstantRails allowed > * No Linux-in-a-Window allowed > * No VMware/VirtualPC/emulation allowed > > Basically, the only non-MS software allowed on the server is Ruby and the Rails > libraries. > > Any takers? > > Lester > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Colin wrote:> This should pretty much work. > http://www.zedshaw.com/projects/scgi_rails/ > > Neither did I have much trouble getting fcgi to work on winxp + apache2. > Well.. maybe i did have to go through much trouble, but i succeeded. > However I''m not sure what guide i used. I''ve bookmarked both > http://electricvisions.com/rails.html and > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows. > > Anyway, nowadays I don''t bother using apache anymore. My target machine > is linux anyway, and radrails integration of webrick suits me well > enough for development.Well I finally got RoR to work for the time being. I guess it was a combonation of factors that triggered the issues I was having but I am still not entirely sure what I did to make it work. I decided to do the tutorial setup nearly verbatim rather than try to modify it to accomodate my setup. I also used the url: http://electricvisions.com/rails.html and ran the RubyForApache installer they had (checking off fcgi only, however). Then I used the above tip from Jamie to use my_test and not mytest and now everything seems to work. BTW now when I use mytest I get a routing error and not the application error. One odd discrepancy I see between the tutorial posted here: http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP is in regards to the note at the end indicating they had to add a w to the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. Seems odd they would be different on superficially identical setups. So again I thank everyone for their help, with a little coaxing I now can try RoR out so I am happy. If anyone wants a more thorough rundown of the exact things I did in case they are receiving similar errors just let me know. Thanks again, John -- Posted via http://www.ruby-forum.com/.
I''ve run Rails under IIS / sqlserver in production. The excercise convinced all involved that: 1) Rails is great 2) IIS and windows in general *bites donkey parts* as a production environment to run Rails (as of a couple of months ago at least). It can be done, but it''s not pretty. We had to use C++ and the registry editor to set up the url rewriter, and that was just the start of it. We had scheduled tasks trashing Ruby processes every night. etc. 3) springing a couple of grand for a new (linux) server would be totally worth it we now have two webservers. The windows machine runs the database (sqlserver has all the existing data in it). The Linux box runs Rails applications. Setting up the iODBC brige to sqlserver was a pain, but I''ve barely touched it since it was set up a couple of months ago; everything Just Works now. Apache may be ok; we had to support legacy ASP applications, and didn''t go down that route. Implicit in the above is my recommendation about Rails on IIS. My advice is, if you can now or in the future, run it on one of the platforms it was written primarily on and for. cheers D On 12/17/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote:> Colin wrote: > > This should pretty much work. > > http://www.zedshaw.com/projects/scgi_rails/ > > > > Neither did I have much trouble getting fcgi to work on winxp + apache2. > > Well.. maybe i did have to go through much trouble, but i succeeded. > > However I''m not sure what guide i used. I''ve bookmarked both > > http://electricvisions.com/rails.html and > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows. > > > > Anyway, nowadays I don''t bother using apache anymore. My target machine > > is linux anyway, and radrails integration of webrick suits me well > > enough for development. > > Well I finally got RoR to work for the time being. I guess it was a > combonation of factors that triggered the issues I was having but I am > still not entirely sure what I did to make it work. I decided to do the > tutorial setup nearly verbatim rather than try to modify it to > accomodate my setup. I also used the url: > http://electricvisions.com/rails.html and ran the RubyForApache > installer they had (checking off fcgi only, however). Then I used the > above tip from Jamie to use my_test and not mytest and now everything > seems to work. BTW now when I use mytest I get a routing error and not > the application error. > > One odd discrepancy I see between the tutorial posted here: > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP > is in regards to the note at the end indicating they had to add a w to > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > Seems odd they would be different on superficially identical setups. > > So again I thank everyone for their help, with a little coaxing I now > can try RoR out so I am happy. > > If anyone wants a more thorough rundown of the exact things I did in > case they are receiving similar errors just let me know. > > Thanks again, > > John > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- cheers, David Lee
Would anyone who has successfully deployed applications using IIS on Windows 2000 and Windows 2003 be gracious enough to provide me with any information besides the current information on the Wiki? I have only had one success at deploying Rails to IIS... And several failures. Specifically, I would like to know : * what modifications (if any) were needed to the Rails core (I''ve seen several variations) * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with mixed results) * What your registry key for FASTCGI looks like * What permissions were required to the ruby/bin folder, the app folder, and the isapi filters * How to handle "unable to connect to fastcgi server" messages I would welcome any help I can get; it''s comforting to know that people have gotten this to work, although I realize that it might not be optimal. (I need to do this as a first step.) Thanks in advance Best regards, Brian Hogan -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of David Lee Sent: Saturday, December 17, 2005 8:45 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... I''ve run Rails under IIS / sqlserver in production. The excercise convinced all involved that: 1) Rails is great 2) IIS and windows in general *bites donkey parts* as a production environment to run Rails (as of a couple of months ago at least). It can be done, but it''s not pretty. We had to use C++ and the registry editor to set up the url rewriter, and that was just the start of it. We had scheduled tasks trashing Ruby processes every night. etc. 3) springing a couple of grand for a new (linux) server would be totally worth it we now have two webservers. The windows machine runs the database (sqlserver has all the existing data in it). The Linux box runs Rails applications. Setting up the iODBC brige to sqlserver was a pain, but I''ve barely touched it since it was set up a couple of months ago; everything Just Works now. Apache may be ok; we had to support legacy ASP applications, and didn''t go down that route. Implicit in the above is my recommendation about Rails on IIS. My advice is, if you can now or in the future, run it on one of the platforms it was written primarily on and for. cheers D On 12/17/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote:> Colin wrote: > > This should pretty much work. > > http://www.zedshaw.com/projects/scgi_rails/ > > > > Neither did I have much trouble getting fcgi to work on winxp + > > apache2. Well.. maybe i did have to go through much trouble, but i > > succeeded. However I''m not sure what guide i used. I''ve bookmarked > > both http://electricvisions.com/rails.html and > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > > n-windows. > > > > Anyway, nowadays I don''t bother using apache anymore. My target > > machine is linux anyway, and radrails integration of webrick suits > > me well enough for development. > > Well I finally got RoR to work for the time being. I guess it was a > combonation of factors that triggered the issues I was having but I am> still not entirely sure what I did to make it work. I decided to do > the tutorial setup nearly verbatim rather than try to modify it to > accomodate my setup. I also used the url: > http://electricvisions.com/rails.html and ran the RubyForApache > installer they had (checking off fcgi only, however). Then I used the> above tip from Jamie to use my_test and not mytest and now everything > seems to work. BTW now when I use mytest I get a routing error and > not the application error. > > One odd discrepancy I see between the tutorial posted here: > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > ws+XP > is in regards to the note at the end indicating they had to add a w to > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > Seems odd they would be different on superficially identical setups. > > So again I thank everyone for their help, with a little coaxing I now > can try RoR out so I am happy. > > If anyone wants a more thorough rundown of the exact things I did in > case they are receiving similar errors just let me know. > > Thanks again, > > John > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- cheers, David Lee _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Why not use apache on windows? or better yet just use a fedora setup? I was thinking about the foray into using IIS as well since we are a windows shop but, it just doesn''t make any sense. On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Would anyone who has successfully deployed applications using IIS on > Windows 2000 and Windows 2003 be gracious enough to provide me with any > information besides the current information on the Wiki? I have only > had one success at deploying Rails to IIS... And several failures. > Specifically, I would like to know : > > * what modifications (if any) were needed to the Rails core (I''ve seen > several variations) > * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with > mixed results) > * What your registry key for FASTCGI looks like > * What permissions were required to the ruby/bin folder, the app folder, > and the isapi filters > * How to handle "unable to connect to fastcgi server" messages > > I would welcome any help I can get; it''s comforting to know that people > have gotten this to work, although I realize that it might not be > optimal. (I need to do this as a first step.) > > Thanks in advance > > Best regards, > Brian Hogan > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of David Lee > Sent: Saturday, December 17, 2005 8:45 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... > > > I''ve run Rails under IIS / sqlserver in production. The excercise > convinced all involved that: > > 1) Rails is great > 2) IIS and windows in general *bites donkey parts* as a production > environment to run Rails (as of a couple of months ago at least). It can > be done, but it''s not pretty. We had to use C++ and the registry editor > to set up the url rewriter, and that was just the start of it. We had > scheduled tasks trashing Ruby processes every night. etc. > 3) springing a couple of grand for a new (linux) server would be totally > worth it > > we now have two webservers. The windows machine runs the database > (sqlserver has all the existing data in it). The Linux box runs Rails > applications. Setting up the iODBC brige to sqlserver was a pain, but > I''ve barely touched it since it was set up a couple of months ago; > everything Just Works now. > > Apache may be ok; we had to support legacy ASP applications, and didn''t > go down that route. Implicit in the above is my recommendation about > Rails on IIS. > > My advice is, if you can now or in the future, run it on one of the > platforms it was written primarily on and for. > > cheers > > D > > On 12/17/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote: > > Colin wrote: > > > This should pretty much work. > > > http://www.zedshaw.com/projects/scgi_rails/ > > > > > > Neither did I have much trouble getting fcgi to work on winxp + > > > apache2. Well.. maybe i did have to go through much trouble, but i > > > succeeded. However I''m not sure what guide i used. I''ve bookmarked > > > both http://electricvisions.com/rails.html and > > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > > > n-windows. > > > > > > Anyway, nowadays I don''t bother using apache anymore. My target > > > machine is linux anyway, and radrails integration of webrick suits > > > me well enough for development. > > > > Well I finally got RoR to work for the time being. I guess it was a > > combonation of factors that triggered the issues I was having but I am > > > still not entirely sure what I did to make it work. I decided to do > > the tutorial setup nearly verbatim rather than try to modify it to > > accomodate my setup. I also used the url: > > http://electricvisions.com/rails.html and ran the RubyForApache > > installer they had (checking off fcgi only, however). Then I used the > > > above tip from Jamie to use my_test and not mytest and now everything > > seems to work. BTW now when I use mytest I get a routing error and > > not the application error. > > > > One odd discrepancy I see between the tutorial posted here: > > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > > ws+XP > > is in regards to the note at the end indicating they had to add a w to > > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > > Seems odd they would be different on superficially identical setups. > > > > So again I thank everyone for their help, with a little coaxing I now > > can try RoR out so I am happy. > > > > If anyone wants a more thorough rundown of the exact things I did in > > case they are receiving similar errors just let me know. > > > > Thanks again, > > > > John > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > cheers, > David Lee > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Steven Ross web application & interface developer http://www.zerium.com [phone] 404-488-4364 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Zed: I agree with you in theory, but here''s my reality: We''re a regional university who has a large support contract with MS. We do have some Linux boxes, but we host hundreds of web sites on our IIS servers. Different departments, like Biology, Chemistry, etc. house their web pages on our server, which happens to run IIS. We''ve been successful in integrating applications into these spaces using both ASP and PHP. Biology, for example can have a web application that allows students to record their lab results located at www.uwec.edu/biology/labresults/ We desperately want to use Rails to replace ASP and PHP because it''s faster, less prone to errors (good testing) and we have budget constraints. However, we *need* to be able to retain this integration with our sites. My feeling is that I don''t care what platform it runs on as long as this integration can be maintained... However, I can''t get this running on IIS, and I can find no good reverse-proxy solutions. I''d be interested to see how to get IIS to redirect requests to an SCGI runner for Rails. So, I hope you can see that this is more than just an "arbitrary decision". We can''t switch our web sites over to Apache just because we''d like to try out a couple of Rails applications... Our budget just doesn''t allow that. As for "some things can''t be done", I just have to disagree. That''s what the Java people say about Rails... I believe that anything can be done if the right people are motivated. PHP runs under IIS with FastCGI, so what''s the problem with Rails? You could say it''s an IIS thing... But ColfFusion, Perl, PHP, and JSP (Tomcat proxy) work. I would greatly appreciate any solutions anyone has for this problem and would be interested in sharing ideas with others who are in similar situations. Thanks for listening. Brian Hogan Web Development Learning & Technology Services Schofield 3-B University of Wisconsin-Eau Claire 715 836 3585 hoganbp-VnAisaAFmHY@public.gmane.org -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Zed Shaw Sent: Friday, December 16, 2005 4:31 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... You know, there are just some things that can''t be done. Imagine if someone came to you and said, "Ok, you can build a boat out of wood, but you can''t use nails, glue, straps, sealant, rudders or sails. Go to it." You''re just gonna build a sinking ship. I find when such arbitrary restrictions are being made on a technology solution it''s usually because of politics, fighting, and other aspects of organizational culture typical of places that put more emphasis on being right and less on evidence and cooperation. This is especially true in government where you''re told you can''t use a technology because it''s "not secure", but then everyone uses telnet to get to personnel data on the VAX. Additionally, if these restrictions are placed by some psuedo-security expert sysadmin type then I''m betting it''s a unilateral decision by this one person to protect his little kingdom, and not based on any set policy from management. If you were interested in getting this resolved you should consider having your management create an official security policy that outlines this very restriction, get them to sign off on it, and then begin to enforce it on all systems and personnel. You''ll very quickly find that the same sysadmin who made these decisions is in direct violation of this policy. If this is a policy set by management, then an correctly written policy should include provisions for an exceptional case policy so that new technologies can be used and the organization doesn''t stagnate. The need to adapt to changing technology is crucial, especially when it''s possible that previously restricted technologies could improve systems management and security. Otherwise, you''re totally screwed. :-) Zed A. Shaw http://www.zedshaw.com/ On Fri, Dec 16, 2005 at 08:47:14PM +0000, lester bangs wrote:> John Smith <john.smith@...> writes: ><snip>> Rails on a Windows 2k3/IIS6 production environment with the following > restrictions: > > * No Apache allowed > * No InstantRails allowed > * No Linux-in-a-Window allowed > * No VMware/VirtualPC/emulation allowed > > Basically, the only non-MS software allowed on the server is Ruby and > the Rails > libraries. > > Any takers? > > Lester > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Why don''t you just setup some redirects on your IIS managed sites to where the rails apps will be? That way you can run whatever setup you want. On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Zed: > > I agree with you in theory, but here''s my reality: > > We''re a regional university who has a large support contract with MS. We > do have some Linux boxes, but we host hundreds of web sites on our IIS > servers. Different departments, like Biology, Chemistry, etc. house > their web pages on our server, which happens to run IIS. > > We''ve been successful in integrating applications into these spaces > using both ASP and PHP. > Biology, for example can have a web application that allows students to > record their lab results located at > > www.uwec.edu/biology/labresults/ > > We desperately want to use Rails to replace ASP and PHP because it''s > faster, less prone to errors (good testing) and we have budget > constraints. > > However, we *need* to be able to retain this integration with our sites. > My feeling is that I don''t care what platform it runs on as long as this > integration can be maintained... However, I can''t get this running on > IIS, and I can find no good reverse-proxy solutions. I''d be interested > to see how to get IIS to redirect requests to an SCGI runner for Rails. > > So, I hope you can see that this is more than just an "arbitrary > decision". We can''t switch our web sites over to Apache just because > we''d like to try out a couple of Rails applications... Our budget just > doesn''t allow that. > > As for "some things can''t be done", I just have to disagree. That''s what > the Java people say about Rails... I believe that anything can be done > if the right people are motivated. PHP runs under IIS with FastCGI, so > what''s the problem with Rails? You could say it''s an IIS thing... But > ColfFusion, Perl, PHP, and JSP (Tomcat proxy) work. > > I would greatly appreciate any solutions anyone has for this problem and > would be interested in sharing ideas with others who are in similar > situations. > > Thanks for listening. > > Brian Hogan > Web Development > Learning & Technology Services > Schofield 3-B > University of Wisconsin-Eau Claire > 715 836 3585 > hoganbp-VnAisaAFmHY@public.gmane.org > > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Zed Shaw > Sent: Friday, December 16, 2005 4:31 PM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... > > > You know, there are just some things that can''t be done. Imagine if > someone came to you and said, "Ok, you can build a boat out of > wood, but you can''t use nails, glue, straps, sealant, rudders or sails. > Go to it." You''re just gonna build a sinking ship. > > I find when such arbitrary restrictions are being made on a technology > solution it''s usually because of politics, fighting, and other > aspects of organizational culture typical of places that put more > emphasis on being right and less on evidence and cooperation. This > is especially true in government where you''re told you can''t use a > technology because it''s "not secure", but then everyone uses telnet to > get to personnel data on the VAX. > > Additionally, if these restrictions are placed by some psuedo-security > expert sysadmin type then I''m betting it''s a unilateral > decision by this one person to protect his little kingdom, and not based > on any set policy from management. If you were interested > in getting this resolved you should consider having your management > create an official security policy that outlines this very > restriction, get them to sign off on it, and then begin to enforce it on > all systems and personnel. You''ll very quickly find that the > same sysadmin who made these decisions is in direct > violation of this policy. > > If this is a policy set by management, then an correctly written policy > should include provisions for an exceptional case policy so > that new technologies can be used and the organization doesn''t stagnate. > The need to adapt to changing technology is crucial, > especially when it''s possible that previously restricted technologies > could improve systems management and security. > > Otherwise, you''re totally screwed. :-) > > Zed A. Shaw > http://www.zedshaw.com/ > > > > On Fri, Dec 16, 2005 at 08:47:14PM +0000, lester bangs wrote: > > John Smith <john.smith@...> writes: > > > <snip> > > Rails on a Windows 2k3/IIS6 production environment with the following > > restrictions: > > > > * No Apache allowed > > * No InstantRails allowed > > * No Linux-in-a-Window allowed > > * No VMware/VirtualPC/emulation allowed > > > > Basically, the only non-MS software allowed on the server is Ruby and > > the Rails > > libraries. > > > > Any takers? > > > > Lester > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Steven Ross web application & interface developer http://www.zerium.com [phone] 404-488-4364 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Would love to....but our current setup doesn''t support it (that I know of). If you''ve got a solution on how to integrate Apache behind an IIS web server, I would be very interested to hear it. To reiterate from an earlier post, here''s what I''ve got: We''ve got hundreds of sites served from our web server which runs IIS. Each department is a subfolder of our main site www.uwec.edu/biology We currently integrate web applications into their sites using ASP, and now PHP. Let''s say the Biology department wanted to collect lab data from their students. They might have an application hosted at www.uwec.edu/biology/labdata This allows us to more easily share images, styles, etc plus they feel as though they "own" the application. We''ve had things on different servers and it''s not well received by departments. So, if I wanted to write the labdata application in Rails, I would need a way to integrate that with their site. How do I do that if I can''t get IIS to serve it out? I would be willing to run this on Apache, but how would I get IIS to reverse-proxy to it (and also ensure that everything works? In order to retain the url structure, a reverse proxy would also need to transform the responses from the Apache server so that the correct URLs could be requested again. (I realize that my situation may be different from others but would welcome any suggestionts.) -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Steven Ross Sent: Tuesday, December 20, 2005 10:40 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... Why not use apache on windows? or better yet just use a fedora setup? I was thinking about the foray into using IIS as well since we are a windows shop but, it just doesn''t make any sense. On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote: Would anyone who has successfully deployed applications using IIS on Windows 2000 and Windows 2003 be gracious enough to provide me with any information besides the current information on the Wiki? I have only had one success at deploying Rails to IIS... And several failures. Specifically, I would like to know : * what modifications (if any) were needed to the Rails core (I''ve seen several variations) * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with mixed results) * What your registry key for FASTCGI looks like * What permissions were required to the ruby/bin folder, the app folder, and the isapi filters * How to handle "unable to connect to fastcgi server" messages I would welcome any help I can get; it''s comforting to know that people have gotten this to work, although I realize that it might not be optimal. (I need to do this as a first step.) Thanks in advance Best regards, Brian Hogan -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> ] On Behalf Of David Lee Sent: Saturday, December 17, 2005 8:45 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... I''ve run Rails under IIS / sqlserver in production. The excercise convinced all involved that: 1) Rails is great 2) IIS and windows in general *bites donkey parts* as a production environment to run Rails (as of a couple of months ago at least). It can be done, but it''s not pretty. We had to use C++ and the registry editor to set up the url rewriter, and that was just the start of it. We had scheduled tasks trashing Ruby processes every night. etc. 3) springing a couple of grand for a new (linux) server would be totally worth it we now have two webservers. The windows machine runs the database (sqlserver has all the existing data in it). The Linux box runs Rails applications. Setting up the iODBC brige to sqlserver was a pain, but I''ve barely touched it since it was set up a couple of months ago; everything Just Works now. Apache may be ok; we had to support legacy ASP applications, and didn''t go down that route. Implicit in the above is my recommendation about Rails on IIS. My advice is, if you can now or in the future, run it on one of the platforms it was written primarily on and for. cheers D On 12/17/05, John Smith < john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org <mailto:john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> > wrote: > Colin wrote: > > This should pretty much work. > > http://www.zedshaw.com/projects/scgi_rails/ > > > > Neither did I have much trouble getting fcgi to work on winxp + > > apache2. Well.. maybe i did have to go through much trouble, but i > > succeeded. However I''m not sure what guide i used. I''ve bookmarked > > both http://electricvisions.com/rails.html and > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > > n-windows. > > > > Anyway, nowadays I don''t bother using apache anymore. My target > > machine is linux anyway, and radrails integration of webrick suits > > me well enough for development. > > Well I finally got RoR to work for the time being. I guess it was a > combonation of factors that triggered the issues I was having but I am > still not entirely sure what I did to make it work. I decided to do > the tutorial setup nearly verbatim rather than try to modify it to > accomodate my setup. I also used the url: > http://electricvisions.com/rails.html and ran the RubyForApache > installer they had (checking off fcgi only, however). Then I used the > above tip from Jamie to use my_test and not mytest and now everything > seems to work. BTW now when I use mytest I get a routing error and > not the application error. > > One odd discrepancy I see between the tutorial posted here: > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > ws+XP > is in regards to the note at the end indicating they had to add a w to > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > Seems odd they would be different on superficially identical setups. > > So again I thank everyone for their help, with a little coaxing I now > can try RoR out so I am happy. > > If anyone wants a more thorough rundown of the exact things I did in > case they are receiving similar errors just let me know. > > Thanks again, > > John > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > -- cheers, David Lee _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails -- Steven Ross web application & interface developer http://www.zerium.com [phone] 404-488-4364 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ugh, that sounds like a political nightmare. Why would a department care what server their app is on? anyway I guess that is beside the point. I would assume if you told them you could get their applicaiton built in 1/2 the time if they had an "ugly" url that they wouldn''t care. You could also build in admin features for a person to edit their look and feel instead of worrying about linking to "local" images. Sorry, don''t know how you would go about doing this. On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Would love to....but our current setup doesn''t support it (that I know > of). If you''ve got a solution on how to integrate Apache behind an IIS web > server, I would be very interested to hear it. > > To reiterate from an earlier post, here''s what I''ve got: > > We''ve got hundreds of sites served from our web server which runs IIS. Each > department is a subfolder of our main site > > www.uwec.edu/biology > > We currently integrate web applications into their sites using ASP, and > now PHP. Let''s say the Biology department wanted to collect lab data from > their students. They might have an application hosted at > > www.uwec.edu/biology/labdata > > This allows us to more easily share images, styles, etc plus they feel as > though they "own" the application. We''ve had things on different servers and > it''s not well received by departments. > > So, if I wanted to write the labdata application in Rails, I would need a > way to integrate that with their site. How do I do that if I can''t get IIS > to serve it out? I would be willing to run this on Apache, but how would I > get IIS to reverse-proxy to it (and also ensure that everything works? In > order to retain the url structure, a reverse proxy would also need to > transform the responses from the Apache server so that the correct URLs > could be requested again. > > (I realize that my situation may be different from others but would > welcome any suggestionts.) > > -----Original Message----- > *From:* rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto: > rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] *On Behalf Of *Steven Ross > *Sent:* Tuesday, December 20, 2005 10:40 AM > *To:* rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* Re: [Rails] Re: I Would Really Like to Try RoR but... > > Why not use apache on windows? or better yet just use a fedora setup? I > was thinking about the foray into using IIS as well since we are a windows > shop but, it just doesn''t make any sense. > > > On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote: > > > > Would anyone who has successfully deployed applications using IIS on > > Windows 2000 and Windows 2003 be gracious enough to provide me with any > > information besides the current information on the Wiki? I have only > > had one success at deploying Rails to IIS... And several failures. > > Specifically, I would like to know : > > > > * what modifications (if any) were needed to the Rails core (I''ve seen > > several variations) > > * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with > > mixed results) > > * What your registry key for FASTCGI looks like > > * What permissions were required to the ruby/bin folder, the app folder, > > and the isapi filters > > * How to handle "unable to connect to fastcgi server" messages > > > > I would welcome any help I can get; it''s comforting to know that people > > have gotten this to work, although I realize that it might not be > > optimal. (I need to do this as a first step.) > > > > Thanks in advance > > > > Best regards, > > Brian Hogan > > > > > > -----Original Message----- > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of David Lee > > Sent: Saturday, December 17, 2005 8:45 AM > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... > > > > > > I''ve run Rails under IIS / sqlserver in production. The excercise > > convinced all involved that: > > > > 1) Rails is great > > 2) IIS and windows in general *bites donkey parts* as a production > > environment to run Rails (as of a couple of months ago at least). It can > > > > be done, but it''s not pretty. We had to use C++ and the registry editor > > to set up the url rewriter, and that was just the start of it. We had > > scheduled tasks trashing Ruby processes every night. etc. > > 3) springing a couple of grand for a new (linux) server would be totally > > > > worth it > > > > we now have two webservers. The windows machine runs the database > > (sqlserver has all the existing data in it). The Linux box runs Rails > > applications. Setting up the iODBC brige to sqlserver was a pain, but > > I''ve barely touched it since it was set up a couple of months ago; > > everything Just Works now. > > > > Apache may be ok; we had to support legacy ASP applications, and didn''t > > go down that route. Implicit in the above is my recommendation about > > Rails on IIS. > > > > My advice is, if you can now or in the future, run it on one of the > > platforms it was written primarily on and for. > > > > cheers > > > > D > > > > On 12/17/05, John Smith < john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote: > > > Colin wrote: > > > > This should pretty much work. > > > > http://www.zedshaw.com/projects/scgi_rails/ > > > > > > > > Neither did I have much trouble getting fcgi to work on winxp + > > > > apache2. Well.. maybe i did have to go through much trouble, but i > > > > succeeded. However I''m not sure what guide i used. I''ve bookmarked > > > > both http://electricvisions.com/rails.html and > > > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > > > > > > n-windows. > > > > > > > > Anyway, nowadays I don''t bother using apache anymore. My target > > > > machine is linux anyway, and radrails integration of webrick suits > > > > me well enough for development. > > > > > > Well I finally got RoR to work for the time being. I guess it was a > > > combonation of factors that triggered the issues I was having but I am > > > > > still not entirely sure what I did to make it work. I decided to do > > > the tutorial setup nearly verbatim rather than try to modify it to > > > accomodate my setup. I also used the url: > > > http://electricvisions.com/rails.html and ran the RubyForApache > > > installer they had (checking off fcgi only, however). Then I used the > > > > > above tip from Jamie to use my_test and not mytest and now everything > > > seems to work. BTW now when I use mytest I get a routing error and > > > not the application error. > > > > > > One odd discrepancy I see between the tutorial posted here: > > > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > > > > > ws+XP > > > is in regards to the note at the end indicating they had to add a w to > > > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > > > Seems odd they would be different on superficially identical setups. > > > > > > So again I thank everyone for their help, with a little coaxing I now > > > can try RoR out so I am happy. > > > > > > If anyone wants a more thorough rundown of the exact things I did in > > > case they are receiving similar errors just let me know. > > > > > > Thanks again, > > > > > > John > > > > > > -- > > > Posted via http://www.ruby-forum.com/. > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > > cheers, > > David Lee > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > Steven Ross > web application & interface developer > http://www.zerium.com > [phone] 404-488-4364 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Steven Ross web application & interface developer http://www.zerium.com [phone] 404-488-4364 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Would love to....but our current setup doesn''t support it (that I know of). > If you''ve got a solution on how to integrate Apache behind an IIS web > server, I would be very interested to hear it. >I run a production Tomcat server behind IIS on Win2003 (used to work under Win2000). I imagine if you get the Tomcat/IIS installation instructions you can use them to setup a Apache/IIS installation. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
Greg: I looked at that, but as far as I could tell, it uses a special DLL that knows about tomcat. I don''t know enough C++ to muck around with ISAPI... But that''s definitely a good idea and it''s been in the back of my mind for a few months now. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Greg Freemyer Sent: Tuesday, December 20, 2005 11:15 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... On 12/20/05, Hogan, Brian P. <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> > Would love to....but our current setup doesn''t support it (that I know> of). If you''ve got a solution on how to integrate Apache behind an IIS> web server, I would be very interested to hear it. >I run a production Tomcat server behind IIS on Win2003 (used to work under Win2000). I imagine if you get the Tomcat/IIS installation instructions you can use them to setup a Apache/IIS installation. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Brian, I''d love to write you an IIS plugin for SCGI. BTW, I have to eat. Do you happen to have some donations so I can work on it? This is the main problem. The classic open source approach is that I do this in my spare time since I need it. I spent quite a bit of my time on SCGI and others spent their time on Rails. Curt Hibbs put a great deal of effort in Instant Rails just to support Win32. Even now there''s times when I hear of startups popping up using SCGI to host and wonder if I''m being taken advantage of by them. It kind of bothers me, but the effort to give it to others was only slightly more than the time it took to implement it myself so I released it. SCGI, FastCGI, and WEBrick work for me and 99% of people out there so there''s little motivation for someone to spend their own time and money trying to support another platform to please the 1% who refuse to try to use the established mechanisms. I know that sounds harsh, but that''s the way it goes. Now, before you think I''m a "lousy MS hater" keep in mind that a prime motivation for me to do SCGI was to bring in Win32 support for people. I''ll tell you I''m one of the few core developers who made this kind of effort (correct me if I''m wrong guys). Ironically, I''m not even really core, just a guy who hangs out in the core IRC channel. So, yes you''re right anyone can do just about anything. I can''t really find the time to do this and the effort required for me to learn to write an IIS plugin to support Win32 after already spending my valuable time supporting Win32 is just not worth the return. But, since "anything can be done if the right people are motivated" why don''t you do it? You''re motivated, you''re the right person, you''re one of the few people who are in this situation, and the tools are there for you to use. Why rely on unpaid volunteers like myself to create something that could save your organization so much money. Hell, you could probably charge for it if you did it right. Which brings up my final point: You should understand that people generally don''t mind supporting Apache, lighttpd, SCGI, FastCGI etc. since these are volunteer systems and everyone has the source. There''s little chance that a company will swoop in and steal them from us. An IIS plugin for Rails has a *very* high chance (IMHO) of suddenly ending up in the IIS distirbution from MS without any return to the developer who writes it. When I look at writing an SCGI plugin to IIS the next thing I see is some company making shitloads of cash off my work. Not a very good motivator if you ask me. Anyway, good luck. Zed A. Shaw http://www.zedshaw.com/ On Tue, 20 Dec 2005 10:41:28 -0600 "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> wrote:> Zed: > > I agree with you in theory, but here''s my reality: > > We''re a regional university who has a large support contract with MS. > We do have some Linux boxes, but we host hundreds of web sites on our > IIS servers. Different departments, like Biology, Chemistry, etc. > house their web pages on our server, which happens to run IIS. > > We''ve been successful in integrating applications into these spaces > using both ASP and PHP. > Biology, for example can have a web application that allows students > to record their lab results located at > > www.uwec.edu/biology/labresults/ > > We desperately want to use Rails to replace ASP and PHP because it''s > faster, less prone to errors (good testing) and we have budget > constraints. > > However, we *need* to be able to retain this integration with our > sites. My feeling is that I don''t care what platform it runs on as > long as this integration can be maintained... However, I can''t get > this running on IIS, and I can find no good reverse-proxy solutions. > I''d be interested to see how to get IIS to redirect requests to an > SCGI runner for Rails. > > So, I hope you can see that this is more than just an "arbitrary > decision". We can''t switch our web sites over to Apache just because > we''d like to try out a couple of Rails applications... Our budget just > doesn''t allow that. > > As for "some things can''t be done", I just have to disagree. That''s > what the Java people say about Rails... I believe that anything can > be done if the right people are motivated. PHP runs under IIS with > FastCGI, so what''s the problem with Rails? You could say it''s an IIS > thing... But ColfFusion, Perl, PHP, and JSP (Tomcat proxy) work. > > I would greatly appreciate any solutions anyone has for this problem > and would be interested in sharing ideas with others who are in > similar situations. > > Thanks for listening. > > Brian Hogan > Web Development > Learning & Technology Services > Schofield 3-B > University of Wisconsin-Eau Claire > 715 836 3585 > hoganbp-VnAisaAFmHY@public.gmane.org > >
Hi Brian, I don''t know how to integrate apache behind IIS, but you could try putting IIS behind apache. mod_proxy works well in apache as a forward or reverse proxy. I''ve done this with tomcat instead of using mod_jk. You might even use mod_security in apache to help shield IIS. On a similar note, I strongly recommend giving each department or college their own 2nd-teir dns name and vhost. i.e. biology would be www.biology.uwec.edu. That way you can easily move the department sites around to different servers when (not if) your main web servers get overloaded. In addition, you can put different departments on different servers based on wen technology used (asp/php/rails). I would recommend against hosting too many web technologies on the same server or cluster. with mod_proxy and apache you can pxoy directory A to serverA and directoryB to server B. Hogan, Brian P. wrote:> Would love to....but our current setup doesn''t support it (that I know > of). If you''ve got a solution on how to integrate Apache behind an IIS > web server, I would be very interested to hear it. > > To reiterate from an earlier post, here''s what I''ve got: > > We''ve got hundreds of sites served from our web server which runs > IIS. Each department is a subfolder of our main site > > www.uwec.edu/biology <http://www.uwec.edu/biology> > > We currently integrate web applications into their sites using ASP, > and now PHP. Let''s say the Biology department wanted to collect lab > data from their students. They might have an application hosted at > > www.uwec.edu/biology/labdata <http://www.uwec.edu/biology/labdata> > > This allows us to more easily share images, styles, etc plus they feel > as though they "own" the application. We''ve had things on different > servers and it''s not well received by departments. > > So, if I wanted to write the labdata application in Rails, I would > need a way to integrate that with their site. How do I do that if I > can''t get IIS to serve it out? I would be willing to run this on > Apache, but how would I get IIS to reverse-proxy to it (and also > ensure that everything works? In order to retain the url structure, a > reverse proxy would also need to transform the responses from the > Apache server so that the correct URLs could be requested again. > > (I realize that my situation may be different from others but would > welcome any suggestionts.) > > -----Original Message----- > *From:* rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] *On Behalf Of *Steven Ross > *Sent:* Tuesday, December 20, 2005 10:40 AM > *To:* rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* Re: [Rails] Re: I Would Really Like to Try RoR but... > > Why not use apache on windows? or better yet just use a fedora setup? > I was thinking about the foray into using IIS as well since we are a > windows shop but, it just doesn''t make any sense. > > > On 12/20/05, *Hogan, Brian P.* <HOGANBP-VnAisaAFmHY@public.gmane.org > <mailto:HOGANBP-VnAisaAFmHY@public.gmane.org>> wrote: > > Would anyone who has successfully deployed applications using IIS on > Windows 2000 and Windows 2003 be gracious enough to provide me > with any > information besides the current information on the Wiki? I have only > had one success at deploying Rails to IIS... And several failures. > Specifically, I would like to know : > > * what modifications (if any) were needed to the Rails core (I''ve seen > several variations) > * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with > mixed results) > * What your registry key for FASTCGI looks like > * What permissions were required to the ruby/bin folder, the app > folder, > and the isapi filters > * How to handle "unable to connect to fastcgi server" messages > > I would welcome any help I can get; it''s comforting to know that > people > have gotten this to work, although I realize that it might not be > optimal. (I need to do this as a first step.) > > Thanks in advance > > Best regards, > Brian Hogan > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>] On Behalf Of David Lee > Sent: Saturday, December 17, 2005 8:45 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... > > > I''ve run Rails under IIS / sqlserver in production. The excercise > convinced all involved that: > > 1) Rails is great > 2) IIS and windows in general *bites donkey parts* as a production > environment to run Rails (as of a couple of months ago at least). > It can > be done, but it''s not pretty. We had to use C++ and the registry > editor > to set up the url rewriter, and that was just the start of it. We had > scheduled tasks trashing Ruby processes every night. etc. > 3) springing a couple of grand for a new (linux) server would be > totally > worth it > > we now have two webservers. The windows machine runs the database > (sqlserver has all the existing data in it). The Linux box runs Rails > applications. Setting up the iODBC brige to sqlserver was a pain, but > I''ve barely touched it since it was set up a couple of months ago; > everything Just Works now. > > Apache may be ok; we had to support legacy ASP applications, and > didn''t > go down that route. Implicit in the above is my recommendation about > Rails on IIS. > > My advice is, if you can now or in the future, run it on one of the > platforms it was written primarily on and for. > > cheers > > D > > On 12/17/05, John Smith < john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org > <mailto:john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org>> wrote: >> Colin wrote: >> > This should pretty much work. >> > http://www.zedshaw.com/projects/scgi_rails/ > <http://www.zedshaw.com/projects/scgi_rails/> >> > >> > Neither did I have much trouble getting fcgi to work on winxp + >> > apache2. Well.. maybe i did have to go through much trouble, but i >> > succeeded. However I''m not sure what guide i used. I''ve bookmarked >> > both http://electricvisions.com/rails.html and >> > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > <http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o> >> > n-windows. >> > >> > Anyway, nowadays I don''t bother using apache anymore. My target >> > machine is linux anyway, and radrails integration of webrick suits >> > me well enough for development. >> >> Well I finally got RoR to work for the time being. I guess it was a >> combonation of factors that triggered the issues I was having but > I am > >> still not entirely sure what I did to make it work. I decided to do >> the tutorial setup nearly verbatim rather than try to modify it to >> accomodate my setup. I also used the url: >> http://electricvisions.com/rails.html and ran the RubyForApache >> installer they had (checking off fcgi only, however). Then I > used the > >> above tip from Jamie to use my_test and not mytest and now everything >> seems to work. BTW now when I use mytest I get a routing error and >> not the application error. >> >> One odd discrepancy I see between the tutorial posted here: >> http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > <http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo> >> ws+XP >> is in regards to the note at the end indicating they had to add a > w to >> the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. >> Seems odd they would be different on superficially identical setups. >> >> So again I thank everyone for their help, with a little coaxing I now >> can try RoR out so I am happy. >> >> If anyone wants a more thorough rundown of the exact things I did in >> case they are receiving similar errors just let me know. >> >> Thanks again, >> >> John >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > cheers, > David Lee > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Steven Ross > web application & interface developer > http://www.zerium.com <http://www.zerium.com> > [phone] 404-488-4364 > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >
Here is a link: http://made-of-stone.blogspot.com/2005/12/setting-up-iis-for-rails.html I have tried this. Frank ----- Original Message ----- From: "Hogan, Brian P." <HOGANBP-VnAisaAFmHY@public.gmane.org> To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> Sent: Tuesday, December 20, 2005 11:30 AM Subject: RE: [Rails] Re: I Would Really Like to Try RoR but... Would anyone who has successfully deployed applications using IIS on Windows 2000 and Windows 2003 be gracious enough to provide me with any information besides the current information on the Wiki? I have only had one success at deploying Rails to IIS... And several failures. Specifically, I would like to know : * what modifications (if any) were needed to the Rails core (I''ve seen several variations) * what rewriter you used (I''ve tried Iconic''s and ISAPIRewrite with mixed results) * What your registry key for FASTCGI looks like * What permissions were required to the ruby/bin folder, the app folder, and the isapi filters * How to handle "unable to connect to fastcgi server" messages I would welcome any help I can get; it''s comforting to know that people have gotten this to work, although I realize that it might not be optimal. (I need to do this as a first step.) Thanks in advance Best regards, Brian Hogan -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of David Lee Sent: Saturday, December 17, 2005 8:45 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... I''ve run Rails under IIS / sqlserver in production. The excercise convinced all involved that: 1) Rails is great 2) IIS and windows in general *bites donkey parts* as a production environment to run Rails (as of a couple of months ago at least). It can be done, but it''s not pretty. We had to use C++ and the registry editor to set up the url rewriter, and that was just the start of it. We had scheduled tasks trashing Ruby processes every night. etc. 3) springing a couple of grand for a new (linux) server would be totally worth it we now have two webservers. The windows machine runs the database (sqlserver has all the existing data in it). The Linux box runs Rails applications. Setting up the iODBC brige to sqlserver was a pain, but I''ve barely touched it since it was set up a couple of months ago; everything Just Works now. Apache may be ok; we had to support legacy ASP applications, and didn''t go down that route. Implicit in the above is my recommendation about Rails on IIS. My advice is, if you can now or in the future, run it on one of the platforms it was written primarily on and for. cheers D On 12/17/05, John Smith <john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org> wrote:> Colin wrote: > > This should pretty much work. > > http://www.zedshaw.com/projects/scgi_rails/ > > > > Neither did I have much trouble getting fcgi to work on winxp + > > apache2. Well.. maybe i did have to go through much trouble, but i > > succeeded. However I''m not sure what guide i used. I''ve bookmarked > > both http://electricvisions.com/rails.html and > > http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o > > n-windows. > > > > Anyway, nowadays I don''t bother using apache anymore. My target > > machine is linux anyway, and radrails integration of webrick suits > > me well enough for development. > > Well I finally got RoR to work for the time being. I guess it was a > combonation of factors that triggered the issues I was having but I am> still not entirely sure what I did to make it work. I decided to do > the tutorial setup nearly verbatim rather than try to modify it to > accomodate my setup. I also used the url: > http://electricvisions.com/rails.html and ran the RubyForApache > installer they had (checking off fcgi only, however). Then I used the> above tip from Jamie to use my_test and not mytest and now everything > seems to work. BTW now when I use mytest I get a routing error and > not the application error. > > One odd discrepancy I see between the tutorial posted here: > http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo > ws+XP > is in regards to the note at the end indicating they had to add a w to > the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. > Seems odd they would be different on superficially identical setups. > > So again I thank everyone for their help, with a little coaxing I now > can try RoR out so I am happy. > > If anyone wants a more thorough rundown of the exact things I did in > case they are receiving similar errors just let me know. > > Thanks again, > > John > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- cheers, David Lee _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Jason : That''s a great idea... I don''t think I''d get it past the management right now, but when I take over then it''s all good :) We''re actually doing exactly what you suggest on a different project here... What I''m trying to do right now is just this: IIS : www.uwec.edu/biology Apache : www2.uwec.edu/biology/labdata/ Then use a reverse-proxy like ISAPI_REWRITE to send requests from www.uwec.edu/biology/labdata to www2.uwec.edu/biology.labdata And hopefully, no-one is the wiser. I do plan to document this on my site and will make the reference available via the wiki once I''ve got it finalized. (I''m about half-done now.) Can someone who knows more about this let me know if this is going to work for at least the short-term? I already know that IIS is not the best web server to use and that''s why I''ve given up trying to use Rails *on* IIS. The point is that if I can prove this works, I can probably take this a step further and use Linux+Lighttpd. -bph -----Original Message----- From: Jason Edgecombe [mailto:jedgecombe-iK5jlJkdgf9Jm/Hvfsr4+Q@public.gmane.org] Sent: Tuesday, December 20, 2005 4:04 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org; Hogan, Brian P. Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... Hi Brian, I don''t know how to integrate apache behind IIS, but you could try putting IIS behind apache. mod_proxy works well in apache as a forward or reverse proxy. I''ve done this with tomcat instead of using mod_jk. You might even use mod_security in apache to help shield IIS. On a similar note, I strongly recommend giving each department or college their own 2nd-teir dns name and vhost. i.e. biology would be www.biology.uwec.edu. That way you can easily move the department sites around to different servers when (not if) your main web servers get overloaded. In addition, you can put different departments on different servers based on wen technology used (asp/php/rails). I would recommend against hosting too many web technologies on the same server or cluster. with mod_proxy and apache you can pxoy directory A to serverA and directoryB to server B. Hogan, Brian P. wrote:> Would love to....but our current setup doesn''t support it (that I know > of). If you''ve got a solution on how to integrate Apache behind an IIS> web server, I would be very interested to hear it. > > To reiterate from an earlier post, here''s what I''ve got: > > We''ve got hundreds of sites served from our web server which runs > IIS. Each department is a subfolder of our main site > > www.uwec.edu/biology <http://www.uwec.edu/biology> > > We currently integrate web applications into their sites using ASP, > and now PHP. Let''s say the Biology department wanted to collect lab > data from their students. They might have an application hosted at > > www.uwec.edu/biology/labdata <http://www.uwec.edu/biology/labdata> > > This allows us to more easily share images, styles, etc plus they feel > as though they "own" the application. We''ve had things on different > servers and it''s not well received by departments. > > So, if I wanted to write the labdata application in Rails, I would > need a way to integrate that with their site. How do I do that if I > can''t get IIS to serve it out? I would be willing to run this on > Apache, but how would I get IIS to reverse-proxy to it (and also > ensure that everything works? In order to retain the url structure, a > reverse proxy would also need to transform the responses from the > Apache server so that the correct URLs could be requested again. > > (I realize that my situation may be different from others but would > welcome any suggestionts.) > > -----Original Message----- > *From:* rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] *On Behalf Of *StevenRoss> *Sent:* Tuesday, December 20, 2005 10:40 AM > *To:* rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > *Subject:* Re: [Rails] Re: I Would Really Like to Try RoR but... > > Why not use apache on windows? or better yet just use a fedora setup? > I was thinking about the foray into using IIS as well since we are a > windows shop but, it just doesn''t make any sense. > > > On 12/20/05, *Hogan, Brian P.* <HOGANBP-VnAisaAFmHY@public.gmane.org > <mailto:HOGANBP-VnAisaAFmHY@public.gmane.org>> wrote: > > Would anyone who has successfully deployed applications using IISon> Windows 2000 and Windows 2003 be gracious enough to provide me > with any > information besides the current information on the Wiki? I haveonly> had one success at deploying Rails to IIS... And several failures. > Specifically, I would like to know : > > * what modifications (if any) were needed to the Rails core (I''veseen> several variations) > * what rewriter you used (I''ve tried Iconic''s and ISAPIRewritewith> mixed results) > * What your registry key for FASTCGI looks like > * What permissions were required to the ruby/bin folder, the app > folder, > and the isapi filters > * How to handle "unable to connect to fastcgi server" messages > > I would welcome any help I can get; it''s comforting to know that > people > have gotten this to work, although I realize that it might not be > optimal. (I need to do this as a first step.) > > Thanks in advance > > Best regards, > Brian Hogan > > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>] On Behalf Of DavidLee> Sent: Saturday, December 17, 2005 8:45 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org<mailto:rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>> Subject: Re: [Rails] Re: I Would Really Like to Try RoR but... > > > I''ve run Rails under IIS / sqlserver in production. The excercise > convinced all involved that: > > 1) Rails is great > 2) IIS and windows in general *bites donkey parts* as a production > environment to run Rails (as of a couple of months ago at least). > It can > be done, but it''s not pretty. We had to use C++ and the registry > editor > to set up the url rewriter, and that was just the start of it. Wehad> scheduled tasks trashing Ruby processes every night. etc. > 3) springing a couple of grand for a new (linux) server would be > totally > worth it > > we now have two webservers. The windows machine runs the database > (sqlserver has all the existing data in it). The Linux box runsRails> applications. Setting up the iODBC brige to sqlserver was a pain,but> I''ve barely touched it since it was set up a couple of months ago; > everything Just Works now. > > Apache may be ok; we had to support legacy ASP applications, and > didn''t > go down that route. Implicit in the above is my recommendationabout> Rails on IIS. > > My advice is, if you can now or in the future, run it on one ofthe> platforms it was written primarily on and for. > > cheers > > D > > On 12/17/05, John Smith < john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org > <mailto:john.smith-juV7kg0qJ37X/7v6RS6x7pGrwCMTu2Xy@public.gmane.org>> wrote: >> Colin wrote: >> > This should pretty much work. >> > http://www.zedshaw.com/projects/scgi_rails/ > <http://www.zedshaw.com/projects/scgi_rails/> >> > >> > Neither did I have much trouble getting fcgi to work on winxp + >> > apache2. Well.. maybe i did have to go through much trouble, but i >> > succeeded. However I''m not sure what guide i used. I''ve bookmarked >> > both http://electricvisions.com/rails.html and >> > >http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o> > <http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-o> >> > n-windows. >> > >> > Anyway, nowadays I don''t bother using apache anymore. My target >> > machine is linux anyway, and radrails integration of webrick suits >> > me well enough for development. >> >> Well I finally got RoR to work for the time being. I guess it was a >> combonation of factors that triggered the issues I was having but > I am > >> still not entirely sure what I did to make it work. I decided to do >> the tutorial setup nearly verbatim rather than try to modify it to >> accomodate my setup. I also used the url: >> http://electricvisions.com/rails.html and ran the RubyForApache >> installer they had (checking off fcgi only, however). Then I > used the > >> above tip from Jamie to use my_test and not mytest and now everything>> seems to work. BTW now when I use mytest I get a routing error and >> not the application error. >> >> One odd discrepancy I see between the tutorial posted here: >> http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Wind >> o > ><http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windo>>> ws+XP >> is in regards to the note at the end indicating they had to add a > w to >> the /ruby/bin/ruby path in dispatch.fcgi. I did not have to do so. >> Seems odd they would be different on superficially identical setups. >> >> So again I thank everyone for their help, with a little coaxing I now>> can try RoR out so I am happy. >> >> If anyone wants a more thorough rundown of the exact things I did in >> case they are receiving similar errors just let me know. >> >> Thanks again, >> >> John >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > cheers, > David Lee > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Steven Ross > web application & interface developer > http://www.zerium.com <http://www.zerium.com> > [phone] 404-488-4364 > >----------------------------------------------------------------------- >- > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >