nginx 몇 개의 전역 변수

1624 단어 nginx전역 변수
가상 컴퓨터 두 대 에서 테스트, nginx 한 대 는 LB, nginx 한 대 는 웹
   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.1
http_via:
http_host: test
host: test
remote_addr: 192.168.56.103
document_uri: /echo
document_root: /usr/local/nginx//html
hostname: test1
http_cookie:
http_referer:
request_filename: /usr/local/nginx//html/echo
request: GET /echo HTTP/1.0
request_uri: /echo
server_addr: 192.168.56.101
server_name: localhost
uri: /echo

아래 링크 방문
http://www.ori.com/echosdfsfssdfsagd?jsdfk
결 과 는 다음 과 같다.
http_x_forwarded_for: 
http_via:
http_host: www.ori.com
host: www.ori.com
remote_addr: 192.168.56.1
document_uri: /echosdfsfssdfsagd
document_root: /usr/local/nginx//html
hostname: test1
http_cookie:
http_referer:
request_filename: /usr/local/nginx//html/echosdfsfssdfsagd
request: GET /echosdfsfssdfsagd?jsdfk HTTP/1.1
request_uri: /echosdfsfssdfsagd?jsdfk
server_addr: 192.168.56.101
server_name: localhost
uri: /echosdfsfssdfsagd

좋은 웹페이지 즐겨찾기