MediaTemple Django Bad Gateway

Posted by Eeyore on Server Fault See other posts from Server Fault or by Eeyore
Published on 2011-01-12T03:33:27Z Indexed on 2011/01/12 3:55 UTC
Read the original article Hit count: 256

Filed under:
|
|
|

I have a site running on GS server on MediaTemple.

It's Django/PostgreSQL setup.

For some reason from time to time I get Bad Gateway error and I can't figure out what's causing it.

What can cause this error?

What else can I do to find the cause of the problem?

url.access-deny = ( "~", ".inc" )

fastcgi.server = (
  "/main.fcgi" => (
    "main" => (
      "socket" => "/var/tmp/" + appname + ".sock", # don't change this
      "check-local" => "disable",
    )
  )
)

alias.url = (
  "/media/" => "/home/xxx/data/python/django/django/contrib/admin/media/",
  "/static/" => "/home/xxx/containers/django/site/static/",
)

url.rewrite-once = (
  "^(/media.*)$" => "$1",
  "^(/static.*)$" => "$1",
  "^/favicon\.ico$" => "/media/favicon.ico",
  "^(/.*)$" => "/main.fcgi$1",
)  

server.error-handler-404 = "/main.fcgi" 

© Server Fault or respective owner

Related posts about lighttpd

Related posts about django