V2EX testVmap
 testVmap's recent timeline updates
testVmap

testVmap

V2EX member #211768, joined on 2017-01-22 10:18:18 +08:00
testVmap's recent replies
Oct 22, 2018
Replied to a topic by 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;
}

最后改成了根据请求路径转发
Sep 18, 2018
Replied to a topic by 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 日志取消注释后还不能生效,需要改下日志名字
Sep 18, 2018
Replied to a topic by testVmap 问与答 nginx 如何获取真实的 IP
A 服务器的日志能正常获取到真实 IP
Sep 18, 2018
Replied to a topic by testVmap 问与答 nginx 如何获取真实的 IP
@lshero 是要怎么配置,要修改 log_format 吗
Sep 18, 2018
Replied to a topic by 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;
}



加了感觉还是没用
Sep 9, 2018
Replied to a topic by testVmap Linux 红帽知识库为什么显示不完整
@xcai 谢谢了
Sep 8, 2018
Replied to a topic by testVmap 问与答 PHP 安全漏洞该如何打补丁
感谢大家了,升级到最新 5.6.37 搞定了
Sep 8, 2018
Replied to a topic by testVmap Linux 红帽知识库为什么显示不完整
@adadada 好的,谢谢了
已经实现,用的 opencv 先灰度模糊,再二值化,找到图形轮廓最后确定中心点
About     Help     Advertise     Blog     API     FAQ     Solana     945 Online   Highest 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 27ms UTC 21:44 PVG 05:44 LAX 14:44 JFK 17:44
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86