
Ich versuche, eine Django-Site mit Apache Mod-WSGI mit Nginx als Front-End für den Reverse-Proxy in Apache auszuführen.
In meiner Apache-Datei 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>
In meiner Nginx-Konfiguration:
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;
}
}
Nach dem Neustart von Apache und Nginx funktioniert nichts, example.com hängt einfach oder stellt index.html in meinem Ordner /var/www/ bereit.
Ich bin für jeden Rat dankbar, der mich in die richtige Richtung weist. Ich habe mehrere Online-Tutorials ohne Erfolg ausprobiert.
Antwort1
Ich habe den leisen Verdacht, dass das Problem hier liegen könnte /root/.python-eggs
– ich glaube, Sie versuchen, Python-Eier zu finden bei /var/www/...
;)