파이썬 SimpleHTTPServer에서 NGINX 리버스 프록시를 설정하려고했습니다. 내 web.conf
파일이 /etc/nginx/conf.d
에 있고 파일에있는 설정은 다음과 같습니다.파이썬 simplehttpserver에서 Nginx 리버스 프록시
server {
server_name localhost;
location/{
proxy_pass http://192.168.1.3:8000/;
}
}
내 NGINX가 실행 중입니다. web.conf
파일을 저장 한 후 다시로드했습니다. 반면에, 나는 또한 디렉토리 home/user/projects/
파이썬 SimpleHTTPServer을 실행하는거야하지만 브라우저를 열고 localhost
를 방문 할 때이 디렉토리 안에있는 index.html
파일을 나에게 Nginx에 시작 페이지를 표시하지하는 I Python SimpleHTTPServer를 실행 중입니다.