Hi, scgi is a very good thing. Thks Zed. I cannot find a way to fire scgi for multi vhost. If I try to start scgi for a second vhost the port is already in use. If i don''t start scgi from the second vhost, the server name serves page from the first vhost :/ Probably I missed sthg. -- Jean-Christophe Michel
On 10/27/05, Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/w@public.gmane.org> wrote:> > Hi, > > scgi is a very good thing. Thks Zed. > > I cannot find a way to fire scgi for multi vhost. If I try to start scgi > for a second vhost the port is already in use. If i don''t start scgi > from the second vhost, the server name serves page from the first vhost :/ > Probably I missed sthg. >If you''re goign to run multiple apps simulaneously, each app needs to run through SCGI on a different port. Curt _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi ! 2005/10/27, Jean-Christophe Michel <jc.michel@symetrie.com>:> I cannot find a way to fire scgi for multi vhost. If I try to start scgi > for a second vhost the port is already in use. If i don't start scgi > from the second vhost, the server name serves page from the first vhost :/ > Probably I missed sthg.Yes, you need to assign a different port for each vhost. Something like this: <VirtualHost *> ServerName server0.domain.com SCGIMount / 127.0.0.1:9995 </VirtualHost> <VirtualHost *> ServerName server1.domain.com SCGIMount / 127.0.0.1:9996 </VirtualHost> Hope that helps ! François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Francois Beausoleil wrote:> Yes, you need to assign a different port for each vhost. Something like this: > > <VirtualHost *> > ServerName server0.domain.com > SCGIMount / 127.0.0.1:9995 > </VirtualHost> > > <VirtualHost *> > ServerName server1.domain.com > SCGIMount / 127.0.0.1:9996 > </VirtualHost> > > > Hope that helps !Yes this helped. Thks ! Simply I thought of productizing some apps with subdomain names, it''ll be maybe harder to do ... -- Jean-Christophe Michel
2005/10/28, Jean-Christophe Michel <jc.michel@symetrie.com>:> Yes this helped. Thks ! > Simply I thought of productizing some apps with subdomain names, it'll > be maybe harder to do ...I have a productize app running in dev mode with SCGI/Apache2. Just holler here if you need more help. Bye ! François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails