Apache mod_wsgi에 대한 nginx 역방향 프록시가 작동하지 않습니다.

Apache mod_wsgi에 대한 nginx 역방향 프록시가 작동하지 않습니다.

저는 nginx를 프런트 엔드로 사용하여 apache mod-wsgi를 사용하여 django 사이트를 실행하여 프록시를 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>

내 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. 제 생각엔 당신이 에서 비단뱀 알을 찾으려고 하는 것 같아요 /var/www/...;)

관련 정보