Redirect nginx未在端口上重定向

Redirect nginx未在端口上重定向,redirect,nginx,port,Redirect,Nginx,Port,我已设置域以将记录指向我的VPS IP,并添加了以下文件/etc/nginx/conf.d/custom.conf server { listen 80; server_name researchnot.es .researchnot.es; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header X-Real-IP $remote_addr; pro

我已设置域以将记录指向我的VPS IP,并添加了以下文件
/etc/nginx/conf.d/custom.conf

server {
    listen 80;
    server_name researchnot.es .researchnot.es;

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-Port 443;
        proxy_set_header Host $host;
    }
} 

我已经运行了
服务nginx configtest
,该服务显示一切正常,并重新启动了nginx。

服务器正在侦听80,但您是否指示从443转发?你是说让服务器听443吗?我想只有80?对于标准研究,而不是S.es请求?