nginx代理项目 项目内部跳转导致丢失端口

发表于 2020-09-04 10:15:13.451,阅读数:1600

nginx代理项目 项目内部跳转导致丢失端口

server {
    listen       8080;
    server_name  localhost;

    location /demo{
    	proxy_pass http://localhost:9090;
    	proxy_set_header Referer $http_referer;
    	proxy_set_header Host $host:8080;#端口为重定向的代理端口
    }	
}

Terly

面向openAI编程的程序员