【发布时间】:2016-10-27 19:07:59
【问题描述】:
我试图在 Python SimpleHTTPServer 上设置 NGINX 反向代理。 /etc/nginx/conf.d 中存在我的web.conf 文件,文件中存在的设置如下。
server {
server_name localhost;
location / {
proxy_pass http://192.168.1.3:8000/;
}
}
我的 NGINX 已启动并正在运行。我在保存web.conf 文件后重新加载。另一方面,我也在目录 home/user/projects/
但是,当我打开浏览器并访问 localhost 时,它会显示 NGINX 欢迎页面,而不是运行 Python SimpleHTTPServer 的目录中的 index.html 文件。
【问题讨论】:
标签: python nginx reverse-proxy simplehttpserver