Lightttpd:server.username for each host
- by qichunren
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.