Welcome! Log In Create A New Profile

Advanced

upstream timed out (110: Connection timed out) while reading response header from upstream

Posted by neridaj 
I'm having problems running two vhosts with nginx, apache2/mod_wsgi where I'm getting this error from one of the vhosts:

upstream timed out (110: Connection timed out) while reading response header from upstream

I'm using the same setup for both domains so I don't understand why one of them is raising this error.

apache2 vhost:

[code]
<VirtualHost *:8080>

ServerName mysite.com
ServerAdmin support@mysite.com
ServerAlias www.mysite.com

WSGIScriptAlias / /home/username/public_html/mysite.com/mysite.wsgi
WSGIDaemonProcess mysite.com threads=5 display-name=%{GROUP} python-path=/usr/lib/python2.6:/usr/lib/python2.6/dist-packages:/home/neri$
WSGIProcessGroup mysite.com

# Custom log file locations
LogLevel warn
ErrorLog /home/username/public_html/mysite.com/logs/error.log
CustomLog /home/username/public_html/mysite.com/logs/access.log combined

XSendFile on
XSendFileAllowAbove on

RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1

</VirtualHost>
[/code]


wsgi:

[code]
import os, sys

sys.path.append('/home/username/public_html/mysite.com')
sys.path.append('/home/username/public_html/mysite.com/mysite')

os.environ['PYTHON_EGG_CACHE'] = '/home/username/public_html/mysite.com/.python-eggs'
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'

import django.core.handlers.wsgi

_application = django.core.handlers.wsgi.WSGIHandler()

def application(environ, start_response):
environ['wsgi.url_scheme'] = environ.get('HTTP_X_URL_SCHEME', 'http')
return _application(environ, start_response)
[/code]


Thanks for any ideas,

Jason
I would love to know the solution to this. I am getting a bunch of these timeout errors as well. I am a NGINX noob. I have no idea what file I should fix or what these errors mean :(

I am running a NGINX server on Ubuntu 10.04 LTS for my wordpress blogs. I thought I was all set and now this horror happens. All in all, my server seems to be responding slower all of a sudden even at the command line.

Apache2 is installed but only to take advantage of the php-fm thing.

Web pages turn into those dreaded 504 Gateway timed out messanges and ..

I get a lot of these in the error log:

[error] 2713#0: *1395 upstream timed out (110: Connection timed out) while reading response header from upstream....



Edited 2 time(s). Last edit at 02/12/2011 11:40PM by nginxrules.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready