我正在尝试使用gunicorn设置nginx,但我一直得到“欢迎来到nginx!”页面。我能够成功地监听其他端口(比如8080),但80端口根本不工作。
server {
listen 80;
server_name host.ca www.host.ca;
access_log /var/log/nginx/example2.log;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://127.0.0.1:8000;
}
我正在以root用户身份运行服务器。 但是似乎无法看到在80端口上运行的任何内容。
netstat -nlp | grep 80
返回什么? - Kyle Kelley