nginx几个全局变量
2015-05-04 17:55
232 查看
在两台虚拟机中测试,一台nginx做LB,一台nginx做web
客户端hosts映射如下:
192.168.56.103 www.test.com 192.168.56.101 www.ori.com
其中
192.168.56.103 为LB 192.168.56.101 为WEB
访问下面链接
http://www.test.com/echo
结果如下:
http_x_forwarded_for: 192.168.56.1http_via:http_host: testhost: testremote_addr: 192.168.56.103document_uri: /echodocument_root: /usr/local/nginx//htmlhostname: test1http_cookie:http_referer:request_filename: /usr/local/nginx//html/echorequest: GET /echo HTTP/1.0request_uri: /echoserver_addr: 192.168.56.101server_name: localhosturi: /echo访问下面链接http://www.ori.com/echosdfsfssdfsagd?jsdfk结果如下:
http_x_forwarded_for:http_via:http_host: www.ori.comhost: www.ori.comremote_addr: 192.168.56.1document_uri: /echosdfsfssdfsagddocument_root: /usr/local/nginx//htmlhostname: test1http_cookie:http_referer:request_filename: /usr/local/nginx//html/echosdfsfssdfsagdrequest: GET /echosdfsfssdfsagd?jsdfk HTTP/1.1request_uri: /echosdfsfssdfsagd?jsdfkserver_addr: 192.168.56.101server_name: localhosturi: /echosdfsfssdfsagd本文出自 “寒桥病树的博客” 博客,请务必保留此出处http://liushan2046.blog.51cto.com/5275814/1641818
相关文章推荐
- Nginx 常用全局变量
- nginx中的全局变量
- Nginx全局变量详解,及Rewrite规则详解
- nginx location语法使用及一些全局变量
- Nginx 常用全局变量 及Rewrite规则详解
- Nginx 之四: Nginx服务器的rewrite、全局变量、重定向和防盗链相关功能
- Nginx的location匹配规则和全局变量
- Nginx 全局变量
- nginx rewrite location 内置全局变量
- 笔记:定义全局变量的几个小要点
- nginx中的全局变量
- nginx location语法使用及一些全局变量
- nginx 中几个uri变量的区别
- uchome调用展示代码时,经常用到的几个全局变量与常量
- Nginx 常用全局变量 及Rewrite规则详解
- nginx全局变量
- nginx内置全局变量及含义
- nginx 常用全局变量
- php部分(查看文件、建立站点、语法变量、变量的几个方法、“全局局部变量的调用”、static、函数参数的作用域);
- Nginx中全局变量整理小结