Lightttpd:server.username for each host

Posted by qichunren on Stack Overflow See other posts from Stack Overflow or by qichunren
Published on 2010-04-14T03:26:51Z Indexed on 2010/04/14 3:33 UTC
Read the original article Hit count: 407

Filed under:
|
|

I want to config lighttpd for 2 users on my vps,and would like lighttpd start each user's own fastcgi demon,not root's own fastcgi demon.

Rails + fastcgi + Lighttpd.

Maybe I found server.username in lighttpd.conf can't work for each host config.

For example: I have 2 users in my linux server:usera and userb $HTTP["host"] == "www.useraweb.com" { server.username = "usera" # some other config } $HTTP["host"] == "www.useraweb.com" { server.username = "userb" # some other config }

ps -ef | grep ruby.

I found all facgi demon is started by userb,It seems that the second server.username = 'userb' config cover the first config.

Now How can I start two users's own fastcgi demon serve for lighttpd.

© Stack Overflow or respective owner

Related posts about lighttpd

Related posts about deploy