博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
微信errMsg: "config:invalid signature"
阅读量:3920 次
发布时间:2019-05-23

本文共 383 字,大约阅读时间需要 1 分钟。

server {

        listen       80;
        server_name  localhost.com;

        location / {

            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
        }
    }

加入这几项配置

proxy_set_header  X-Real-IP  $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;

转载地址:http://gohrn.baihongyu.com/

你可能感兴趣的文章
Leetcode 621. 任务调度器
查看>>
Leetcode 312. 戳气球
查看>>
Leetcode 207. 课程表
查看>>
Mysql主从复制
查看>>
Mysql分库分表
查看>>
设计模式--学原则
查看>>
模式3.策略模式-Java
查看>>
Leetcode 200. 岛屿数量
查看>>
各种类型服务器大起底
查看>>
什么是前后端分离
查看>>
模式4. 装饰模式-Java
查看>>
ubuntu安装Redis
查看>>
Redis使用笔记
查看>>
Leetcode 71. 简化路径
查看>>
Leetcode 79. 单词搜索
查看>>
Leetcode 82. 删除排序链表中的重复元素 II
查看>>
模式5. 代理模式-Java
查看>>
Leetcode 81. 搜索旋转排序数组 II
查看>>
Leetcode 50. Pow(x, n)
查看>>
Leetcode 93. 复原 IP 地址
查看>>