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