宝塔nginx反代流程

Posted 火腿肠烧烤大赛冠军

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了宝塔nginx反代流程相关的知识,希望对你有一定的参考价值。

添加站点

更改配置文件

注意缩进
    location /{
      proxy_pass        http://127.0.0.1:7001;
      #proxy_redirect     off;
      #proxy_set_header   Host $host;
      proxy_set_header   X-Real-IP  $remote_addr;
      proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header   Referer http://$host;
    }

注意配置端口后开放宝塔端口和安全组

以上是关于宝塔nginx反代流程的主要内容,如果未能解决你的问题,请参考以下文章