Re: include problem
Brian Candler <[email protected]> Fri, 12 Nov 2004 09:51:58 +0000
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Nov 12, 2004 at 09:22:37AM +0100, Dominik Werder wrote: > wouldn't it be possible for modruby to spawn multiple ruby instances and > let the user onfigure which virtual hosts should share the interpreter, if > any at all? No, because if I understand rightly, mod_ruby doesn't spawn anything at all. Apache spawns httpd worker processes. If you are running Apache with a pool of 5 worker processes, each process *contains* an instance of mod_ruby, in that it is linked directly in; it's part of the worker. If you want this level of isolation, you should use fastcgi instead. Each application then runs in its own process or pool of processes, and the httpd worker which is dealing with a particular request sends it down a socket to one of the application fastcgi processes. This works well with ruby; you need to build libfcgi first, then install mod_fastcgi for Apache and Moonwolf's 'fcgi' module from RAA. Regards, Brian.