nginx反向代理到Apache的mod_wsgi不起作用

我试图运行一个Django的网站与Apache的mod-wsgi与nginx作为前端反向代理到Apache。

在我的Apache ports.conf文件中:

NameVirtualHost 192.168.0.1:7000 Listen 192.168.0.1:7000 <VirtualHost 192.168.0.1:7000> DocumentRoot /var/apps/example/ ServerName example.com WSGIDaemonProcess example WSGIProcessGroup example Alias /m/ /var/apps/example/forum/skins/ Alias /upfiles/ /var/apps/example/forum/upfiles/ <Directory /var/apps/example/forum/skins> Order deny,allow Allow from all </Directory> WSGIScriptAlias / /var/apps/example/django.wsgi </VirtualHost> 

在我的nginxconfiguration中:

 server { listen 80; server_name example.com; location / { include /usr/local/nginx/conf/proxy.conf; proxy_pass http://192.168.0.1:7000; proxy_redirect default; root /var/apps/example/forum/skins/; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } 

重新启动apache和nginx之后,没有任何工作,example.com只是挂起或服务于我的/ var / www /文件夹中的index.html。

我会很感激任何意见,指向正确的方向。 我已经尝试了几个在线教程无济于事。

我有一个鬼鬼祟祟的怀疑,问题可能是/root/.python-eggs我想你可能试图在/var/www/...上findpython的蛋;)