nginx-所有变量

2016/05/07 nginx

Nginx可用的系统变量列表

```
$ancient_browser
$arg_
$args
$binary_remote_addr
$body_bytes_sent
$bytes_sent (ngx_http_core_module)
$bytes_sent (ngx_http_log_module)
$connection (ngx_http_core_module)
$connection (ngx_http_log_module)
$connection_requests (ngx_http_core_module)
$connection_requests (ngx_http_log_module)
$connections_active
$connections_reading
$connections_waiting
$connections_writing
$content_length
$content_type
$cookie_
$date_gmt
$date_local
$document_root
$document_uri
$fastcgi_path_info
$fastcgi_script_name
$geoip_area_code
$geoip_city
$geoip_city_continent_code
$geoip_city_country_code
$geoip_city_country_code3
$geoip_city_country_name
$geoip_country_code
$geoip_country_code3
$geoip_country_name
$geoip_dma_code
$geoip_latitude
$geoip_longitude
$geoip_org
$geoip_postal_code
$geoip_region
$geoip_region_name
$gzip_ratio
$host
$hostname
$http2
$http_
$https
$invalid_referer
$is_args
$limit_rate
$memcached_key
$modern_browser
$msec (ngx_http_core_module)
$msec (ngx_http_log_module)
$msie
$nginx_version
$pid
$pipe (ngx_http_core_module)
$pipe (ngx_http_log_module)
$proxy_add_x_forwarded_for
$proxy_host
$proxy_port
$proxy_protocol_addr
$query_string
$realip_remote_addr
$realpath_root
$remote_addr
$remote_port
$remote_user
$request
$request_body
$request_body_file
$request_completion
$request_filename
$request_length (ngx_http_core_module)
$request_length (ngx_http_log_module)
$request_method
$request_time (ngx_http_core_module)
$request_time (ngx_http_log_module)
$request_uri
$scheme
$secure_link
$secure_link_expires
$sent_http_
$server_addr
$server_name
$server_port
$server_protocol
$session_log_binary_id
$session_log_id
$slice_range
$spdy
$spdy_request_priority
$ssl_cipher
$ssl_client_cert
$ssl_client_fingerprint
$ssl_client_i_dn
$ssl_client_raw_cert
$ssl_client_s_dn
$ssl_client_serial
$ssl_client_verify
$ssl_protocol
$ssl_server_name
$ssl_session_id
$ssl_session_reused
$status (ngx_http_core_module)
$status (ngx_http_log_module)
$tcpinfo_rtt
$tcpinfo_rttvar
$tcpinfo_snd_cwnd
$tcpinfo_rcv_space
$time_iso8601 (ngx_http_core_module)
$time_iso8601 (ngx_http_log_module)
$time_local (ngx_http_core_module)
$time_local (ngx_http_log_module)
$uid_got
$uid_reset
$uid_set
$upstream_addr
$upstream_cache_status
$upstream_connect_time
$upstream_cookie_
$upstream_header_time
$upstream_http_
$upstream_response_length
$upstream_response_time
$upstream_status
$uri
```

参考

```
http://nginx.org/en/docs/varindex.html
```

Search

    Table of Contents