logo       

Re: virtual hosts specify fastcgi daemon?: msg#00024

web.lighttpd

Subject: Re: virtual hosts specify fastcgi daemon?

Quoting Jan Kneschke (jan@xxxxxxxxxxx):
> On Fri, Sep 10, 2004 at 05:09:06PM -0500, jeremy@xxxxxxxx wrote:
> > The one thing I need to do for my environment that I'm just missing is
> > that I can't figure out how to assign virtual hosts to use a
> > particular fastcgi connection.
> Use
>
> $HTTP["host"] == "blah.com" {
> server.document-root = "/var/www/servers/blah.com/pages/"
> fastcgi.server = ( ".php" =>
> ( "example" =>
> ( "host" => "localhost",
> "port" => 1026
> )
> )
> )
> }
> $HTTP["host"] == "blip.com" {
> server.document-root = "/var/www/servers/blip.com/pages/"
> fastcgi.server = ( ".php" =>
> ( "example" =>
> ( "host" => "localhost",
> "port" => 1027
> )
> )
> )
> }
>
> and create 2 spawn-php.sh script with different user-accounts.
> Jan

That's excellent! I can't believe I just blanked out on using the
conditional conditions to do this.

thanks!
jeremy

--
Jeremy Kelley <jeremy@xxxxxxxx>
All plenty which is not my God is poverty to me. -Augustine




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise