
Apache へのリバース プロキシのフロントエンドとして nginx を使用し、Apache mod-wsgi を使用して Django サイトを実行しようとしています。
私の 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>
私の nginx 設定では:
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 が表示されます。
正しい方向を指し示すアドバイスをいただければ幸いです。オンラインでいくつかのチュートリアルを試しましたが、役に立ちませんでした。
答え1
問題はおそらく次の点にあるのではないかというひそかな疑念を抱いています。/root/.python-eggs
おそらく、Python の卵を で探しているのではないかと思います/var/www/...
。