여러 애플리케이션을 위한 단일 nginx 구성

여러 애플리케이션을 위한 단일 nginx 구성

Linux EC2 인스턴스에서 웹 애플리케이션을 호스팅하고 있습니다. 이 웹 애플리케이션은 app1&라는 이름의 2개의 작은 Python 애플리케이션 으로 구성됩니다 app2.

내가 원하는 것은:

요청 /sales-> 에 웹페이지 표시 app1.

요청 /operation-> 에 웹페이지 표시 app2.

내 nginx 구성.

server {
    listen       80;
    listen       [::]:80;
    server_name  _;
    include /etc/nginx/default.d/*.conf;

    error_page 404 /404.html;
    location = /404.html {
    }

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
    }

    location /sales {
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/sales.sock;
    }

    location /operation {
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/operation.sock;
    }

}

브라우저에서 액세스하려고 하면 첫 번째 결과는 예상대로 표시되지만 웹 사이트 대신 /sales다른 결과가 /operation반환됩니다 .Error 404app2

내가 뭘 잘못했나요?

도와주세요, 감사합니다.

관련 정보