Lighttpd conf

2007-08-20 Thread Bakeoh

Does this  conf file look right? In particular the fcgi statement

 fastcgi.server = (
"/mysite.fcgi" =>

and

 fastcgi.server = (
"/mysite.fcgi" => (
"main" => (

each is a different django project using a different fastcgi socket.


$HTTP["host"] =~ "(www|projects).somesite.com" {
server.document-root = "/web1/httpd/htdocs/"
fastcgi.server = (
"/mysite.fcgi" => (
"main" => (
# Use host / port instead of socket
for TCP fastcgi
# "host" => "127.0.0.1",
# "port" => 3033,
"socket" => "/usr1/local/oper/
mysite.sock",
"min-procs" => 1,
"max-procs" => 25,
"idle-timeout" => 30,
"max-load-per-proc" => 5,
"check-local" => "disable",
"bin-environment" => (
"TZ" => "America/Los_Angeles"
)
)
),
)
 }

# for classifieds
$HTTP["host"] == "anywhere.somesite.com" {
server.document-root = "/web1/httpd/htdocs/"
fastcgi.server = (
"/mysite.fcgi" => (
"main" => (
# Use host / port instead of socket
for TCP fastcgi
# "host" => "127.0.0.1",
# "port" => 3033,
"socket" => "/usr1/local/oper/
class.sock",
"min-procs" => 1,
"max-procs" => 6,
"idle-timeout" => 60,
#"max-load-per-proc" => 5,
"check-local" => "disable",
"bin-environment" => (
"TZ" => "America/Los_Angeles"
)
)
),
)
}


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



fastcgi process trouble

2007-08-09 Thread Bakeoh

We have been experiencing fastcgi processes dying.

The error in the lighttpd log is

unexpected end-of-file (perhaps the fastcgi process died): pid: 0
socket: unix:/usr1/local/oper/class.sock
2007-08-09 12:10:33: (mod_fastcgi.c.3215) response not received,
request sent: 641 on socket: unix:/usr1/local/oper/class.sock for /
mysite.fcgi , closing connection

Another message is

2007-08-09 12:10:32: (mod_fastcgi.c.3215) response not received,
request sent: 641 on socket: unix:/usr1/local/oper/class.sock for /
mysite.fcgi , closing connection
2007-08-09 12:10:32: (mod_fastcgi.c.2964) write failed: Broken pipe
32


This all seems to happen as the load increases. The fix the problem we
have to kill and restart the manange.py


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---