hello, I have a server running apache-1.3 with mod_fastcgi that''s happily running a rails application. Life is good ;) I would like to setup another application (vhost) on the same server.. How to do ? My httpd.conf says: <snip> # fastcgi <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fgci_ipc AddHandler fastcgi-script .fcgi FastCgiServer /my/path/to/rails/my_app1/public/dispatch.fcgi \ -initial-env RAILS_ENV=production \ -processes 4 -idle-timeout 120 </IfModule> </snip> I guess I somehow have to tell apache to use /my/path/to/rails/another_app2/public/dispatch.fcgi for the other application ? Any input greatly appreciated, /mich -- Posted via http://www.ruby-forum.com/.
Michael Hostbaek
2006-Aug-08 13:38 UTC
[Rails] Re: apache-fcgi - multiple applications on same server
mich wrote:> > My httpd.conf says: > <snip> > # fastcgi > <IfModule mod_fastcgi.c> > FastCgiIpcDir /tmp/fgci_ipc > AddHandler fastcgi-script .fcgi > FastCgiServer /my/path/to/rails/my_app1/public/dispatch.fcgi \ > -initial-env RAILS_ENV=production \ > -processes 4 -idle-timeout 120 > </IfModule> > </snip>(Reply to myself) I guess I just have to add a "FastCgiServer [...]" line for each application. /mich -- Posted via http://www.ruby-forum.com/.