MediaTemple Django Bad Gateway
- by Eeyore
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"