码迷,mamicode.com
首页 >  
搜索关键字:real-ip    ( 130个结果
nginx+tomcat会话保持
在nginx.conf中http标签内定义upstreamupstreamname{#name自定义一个名字 serverip1:portweight=5; serverip2:portweight=5 }在server标签内的location/中loation/{ proxy_passhttpname;#使用upstream定义的name proxy_set_headerX-Real_IP$remote_addr; client_max_body_size..
分类:其他好文   时间:2017-09-05 15:53:34    阅读次数:214
nginx负载均衡
一.nginx代理服务器部署 1.在nginx代理服务器上装上nginx软件(下载地址:http://nginx.org/en/download.html) 2.在linux系统中下载nginx安装包 切换目录:cd /usr/local 执行如下命令:wget http://nginx.org/d ...
分类:其他好文   时间:2017-08-24 17:56:23    阅读次数:263
Nginx负载均衡配置实例详解
[导读] 负载均衡是我们大流量网站要做的一个东西,下面我来给大家介绍在Nginx服务器上进行负载均衡配置方法,希望对有需要的同学有所帮助哦。负载均衡先来简单了解一下什么是负载均衡,单从字面上的意思来理解就可以解 负载均衡是我们大流量网站要做的一个东西,下面我来给大家介绍在Nginx服务器上进行负载均 ...
分类:其他好文   时间:2017-08-15 17:15:24    阅读次数:178
整理的linux面试运维题
find /home/example/ -type f -name "*.conf" -print|xargs sed -i 's/192\.168\.0\.2/db01/g' iptables -A INPUT -p tcp -m multiport --dport 22,80,443 -j AC ...
分类:系统相关   时间:2017-08-07 13:33:57    阅读次数:272
nginx代理
server{ listen80; server_namemirrors.163.com; access_loglogs/163.logmain; location/{ proxy_set_headerX-real-ip$remote_addr; proxy_set_headerHost$http_host; proxy_set_headerX-Forwarded-Scheme$scheme; proxy_send_timeout300s; proxy_connect_timeout300s; proxy_r..
分类:其他好文   时间:2017-08-03 20:07:58    阅读次数:148
客户端上传日志文件时报错
今天客户端在上报日志文件时报了一个413错误[2017-07-25 13:31:55][Debug][..\BkLogReport\bkupload.cpp][181][void __thiscall BkUpload::onHttpFinished(void)]data: "<html>\r\n< ...
分类:Web程序   时间:2017-07-25 19:43:58    阅读次数:242
Nginx学习笔记10HTTP访问日志
(1)access_log是ngx_http_log_module模块的配置项。 Syntax: access_log path [format [buffer=size] [gzip[=level]] [flush=time] [if=condition]]; access_log off; De ...
分类:Web程序   时间:2017-07-02 19:05:28    阅读次数:210
【PHP】获取用户真实IP
function get_real_ip() { $ip = $_SERVER['REMOTE_ADDR']; if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) && preg_match('/^([0-9]{1,3}\.){3}[0-9]{1,3}$/', ... ...
分类:Web程序   时间:2017-06-20 12:24:50    阅读次数:219
Nginx反向代理apache及Nginx
一.代理apahce:1.先配置nginx配置文件:[root@centos7conf.d]#vim/opt/app/nginx/conf.d/wordpress.confserver{listen80;server_namelocalhost;location/{proxy_passhttp://192.168.1.204;proxy_set_headerX-Real-IP$remote_addr;}}2.若apache需要看到客户端真是IP,需要修改配置..
分类:Web程序   时间:2017-06-09 10:04:27    阅读次数:147
nginx 的多域名多https转发设置方法【转】
version: 1.1(fixed) 修正一些错误基本环境:/etc/nginx/nginx.conf #保持/etc/nginx/ssl/ #ssl认证文件/etc/nginx/site-available #VirtualHost设置区/etc/nginx/site-enable #Virtu ...
分类:Web程序   时间:2017-05-10 16:27:28    阅读次数:245
130条   上一页 1 ... 5 6 7 8 9 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!