关于openresty的运用,openresty


1.前端访问openresty,openresty根据后缀到index.conf找到对应location ~* /后缀地址{

 proxy_set_header Host $host;
        proxy_set_header X-Real-IP $ClientRealIP;
        proxy_set_header X-Forwarded-For  $http_x_forwarded_for;
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
        proxy_pass http:服务名;

}

然后通过服务名到nginx.conf找到真正的服务器地址

http {

 upstream 服务名{
        server 10.99.22.135:8580;
    } 

}

相关内容

    暂无相关文章