美文网首页
nginx反代配置

nginx反代配置

作者: 不知不怪 | 来源:发表于2018-07-12 18:13 被阅读0次

www.conf 文件内容

server {

        listen      80;

        server_name  www.gaozz.club;

        location / {

                proxy_pass        http://localhost:9090;

                proxy_set_header  Host            $host;

                proxy_set_header  X-Real-IP        $remote_addr;

                proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;

        }

}

nginx.conf 文件内容

http {
include vhost/*.conf;

相关文章

网友评论

      本文标题:nginx反代配置

      本文链接:https://www.haomeiwen.com/subject/uvirpftx.html