码迷,mamicode.com
首页 >  
搜索关键字:remote_addr    ( 367个结果
nginx访问日志格式
$time_iso8601ISO8601标准格式下的本地时间。$time_local通用日志格式下的本地时间。我们在配置访问日志的时候,一般都是按照默认格式,但是我觉得$time_local换成$time_iso8601更直观一些。log_formatmain‘$remote_addr-$remote_user$time_iso8601"$request"‘‘$status$body_by..
分类:其他好文   时间:2016-12-23 19:59:29    阅读次数:133
nginx代理resin
接上一篇博文http://chenshoubiao.blog.51cto.com/6159058/1885240vim/usr/local/nginx/conf/vhosts/proxy.confserver{listen80;server_namewww.111.com;location/{proxy_passhttp://127.0.0.1:8000/;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;proxy_s..
分类:其他好文   时间:2016-12-23 02:19:17    阅读次数:121
ASP.NET获取真正的客户端IP地址的6种方法
Request.ServerVariables("REMOTE_ADDR") 来取得客户端的IP地址,但如果客户端是使用代理服务器来访问,那取到的就是代理服务器的IP地址,而不是真正的客户端IP地址,本文将介绍解决方法,需要的朋友可以参考下 在ASP中使用 Request.ServerVariabl ...
分类:Web程序   时间:2016-12-19 22:01:28    阅读次数:266
Logstash利用GeoIP库显示地图以及通过useragent显示浏览器(四)
我们通过Logstash收集的Nginx Access log中已经包含了客户端IP的数据(remote_addr),但是只有这个IP还不够,要在Kibana的显示请求来源的地理位置还需要借助GeoIP数据库来实现。GeoIP 是最常见的免费 IP 地址归类查询库,同时也有收费版可以采购。GeoIP ...
分类:其他好文   时间:2016-12-17 13:47:31    阅读次数:356
php知识分享
PHP 获取ip地址代码汇总 代码一: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 function getip() { static $ip = ''; $ip = $_SERVER['REMOTE_ADDR']; if(isset($_SERVER['HT ...
分类:Web程序   时间:2016-12-15 00:57:05    阅读次数:208
nginx 长连接
upstreamappserver{server127.0.0.1:18001;keepalive64;}server{listen8888;server_namelocalhost;access_log/data/logs/access.logmain;location/{roothtml;indexindex.htmlindex.htm;proxy_passhttp://appserver;proxy_set_headerx-forwarded-for$remote_addr;proxy_http_ver..
分类:其他好文   时间:2016-12-03 02:42:10    阅读次数:131
Nginx 指定不产生日志类型(不记录图片日志)
在主配置文件中已经定义了配置文件的格式[root@LNMP~]#vim/usr/local/nginx/conf/nginx.conf#nginx中的配置修改日志命名格式log_formatcombined_realip‘$remote_addr$http_x_forwarded_for[$time_local]‘‘$host"$request_uri"$status‘‘"$http_referer""$http_user_agent"‘;$rem..
分类:其他好文   时间:2016-12-01 22:57:34    阅读次数:2230
Nginx-限制汇总
http块 要限制连接,必须先有一个容器对连接进行计数,在http段加入如下代码:"zone=" 给它一个名字,可以随便叫,这个名字要跟后面的 limit_conn 一致,$binary_remote_addr, 用二进制来储存客户端的地址,1m 可以储存 32000 个并发会话,也可以用其他 Ng ...
分类:其他好文   时间:2016-12-01 16:21:30    阅读次数:198
logstash 添加nginx日志
选择需求分类废话少说直接上图 第一张图: 2.此图搭配的日志格式是: log_format main '$remote_addr - $remote_user [$time_local] $http_host $request_method "$uri" "$query_string" ' '$st ...
分类:其他好文   时间:2016-11-20 23:08:04    阅读次数:488
nginx日志详解
语法:log_formatnamestring…;默认值:log_formatcombined“…”;log_formataccess_format‘$remote_addr-$remote_user[$time_local]"$request"‘$status$body_bytes_sent"$http_referer"‘‘"$http_user_agent""$http_x_forwarded_for"‘;access_loglogs/access.logaccess_format;$r..
分类:其他好文   时间:2016-11-04 17:54:32    阅读次数:135
367条   上一页 1 ... 18 19 20 21 22 ... 37 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!