testVmap 最近的时间轴更新
testVmap

testVmap

V2EX 第 211768 号会员,加入于 2017-01-22 10:18:18 +08:00
启动 zabbix 服务卡顿
问与答  •  testVmap  •  2018-11-16 19:02:25 PM
keepalived VIP 漂移问题
问与答  •  testVmap  •  2018-11-08 15:13:19 PM
nginx 反向代理微信服务器问题
问与答  •  testVmap  •  2018-10-22 23:24:30 PM  •  最后回复来自 testVmap
5
nginx 如何获取真实的 IP
问与答  •  testVmap  •  2018-09-18 15:51:35 PM  •  最后回复来自 testVmap
10
红帽知识库为什么显示不完整
Linux  •  testVmap  •  2018-09-09 15:24:54 PM  •  最后回复来自 testVmap
4
PHP 安全漏洞该如何打补丁
问与答  •  testVmap  •  2018-09-08 17:43:39 PM  •  最后回复来自 testVmap
5
Python 图像识别 如何找出图像的中心点
Python  •  testVmap  •  2018-07-09 16:53:58 PM  •  最后回复来自 testVmap
19
Linux 服务器 cpu ni 占用率很高,被入侵过应该如何排查问题
Linux  •  testVmap  •  2018-06-17 15:33:21 PM  •  最后回复来自 realpg
10
Python 如何在循环内调用随机函数使结果随机
  •  1   
    Python  •  testVmap  •  2017-11-03 17:29:06 PM  •  最后回复来自 hcnhcn012
    6
    testVmap 最近回复了
    2018-10-22 23:24:30 +08:00
    回复了 testVmap 创建的主题 问与答 nginx 反向代理微信服务器问题
    location ^~ /mp/
    {
    #proxy_cache api_cache;
    proxy_set_header Host mp.weixin.qq.com;
    rewrite /mp/(.+)$ /$1 break;
    proxy_pass https://mp.weixin.qq.com;
    }

    最后改成了根据请求路径转发
    2018-09-18 15:51:35 +08:00
    回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
    感谢大家,最后配置如下
    服务器 A 的转发配置
    location ^~ /namesg/ {
    proxy_pass http://172.16.16.11;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Real-IP $remote_addr;
    }

    服务器 B 的 nginx.conf log 配置

    log_format my_format '$http_x_real_ip -'
    '$remote_addr- [$time_local] "$request" '
    '$status $body_bytes_sent "$http_referer" '
    '"$http_user_agent" "$http_x_forwarded_for"';
    access_log logs/access.log my_format;


    主要是 nginx 日志取消注释后还不能生效,需要改下日志名字
    2018-09-18 14:11:10 +08:00
    回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
    A 服务器的日志能正常获取到真实 IP
    2018-09-18 14:10:38 +08:00
    回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
    @lshero 是要怎么配置,要修改 log_format 吗
    2018-09-18 14:02:57 +08:00
    回复了 testVmap 创建的主题 问与答 nginx 如何获取真实的 IP
    A 服务器转发配置
    location ^~ /sogood {
    proxy_pass http://172.16.0.7:81;
    proxy_pass_header Server;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Scheme $scheme;
    proxy_set_header Cookie $http_cookie;
    proxy_set_header Referer $http_refere;
    proxy_set_header X-Forwarded-For
    $proxy_add_x_forwarded_for;
    #proxy_set_header X-Forwarded-For $remote_addr;
    #proxy_set_header REMOTE-HOST $remote_addr;

    }


    B 服务器转发配置
    location ~ \.php$ {
    proxy_pass http://127.0.0.1;
    proxy_pass_header Server;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Scheme $scheme;
    proxy_set_header Cookie $http_cookie;
    proxy_set_header Referer $http_refere;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }



    加了感觉还是没用
    2018-09-09 15:24:54 +08:00
    回复了 testVmap 创建的主题 Linux 红帽知识库为什么显示不完整
    @xcai 谢谢了
    2018-09-08 17:43:39 +08:00
    回复了 testVmap 创建的主题 问与答 PHP 安全漏洞该如何打补丁
    感谢大家了,升级到最新 5.6.37 搞定了
    2018-09-08 17:41:59 +08:00
    回复了 testVmap 创建的主题 Linux 红帽知识库为什么显示不完整
    @adadada 好的,谢谢了
    2018-07-09 16:53:58 +08:00
    回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
    2018-06-28 08:53:24 +08:00
    回复了 testVmap 创建的主题 Python Python 图像识别 如何找出图像的中心点
    已经实现,用的 opencv 先灰度模糊,再二值化,找到图形轮廓最后确定中心点
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   994 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 22:10 · PVG 06:10 · LAX 15:10 · JFK 18:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.