http_variables
| 變數名稱 | 說明 |
|---|---|
| $args | Request 的參數 也就是網址中 問號 ? 後面的所有參數。 如: example.info?p1=1&p2=2 則 $args = "p1=1&p2=2" |
| $binary_remote_addr | |
| $body_bytes_sent | |
| $content_length | |
| $content_type | Request Headers 中的 "Content-Type" |
| $document_root | |
| $document_uri | 與 $uri 相同 |
| $host | |
| $hostname | |
| $http_cookie | 即 瀏覽器的 $cookie |
| $http_post | |
| $http_referer | |
| $http_user_agent | |
| $http_via | |
| $http_x_forwarded_for | |
| $is_args | |
| $limit_rate | |
| $nginx_version | |
| $pid | |
| $query_string | 同 $args |
| $realpath_root | |
| $remote_addr | client 端的位址 |
| $remote_port | client 端的port |
| $remote_user | |
| $request | |
| $request_body | |
| $request_body_file | |
| $request_completion | |
| $request_filename | |
| $request_method | |
| $request_uri | 與 $uri 及 $document_uri 相比,多了參數 $args 的部分 即 $request_uri = $uri?$args |
| $scheme | request 使用的 protocal , 如 http | https |
| $sent_http_cache_control | |
| $sent_http_connection | |
| $sent_http_content_length | |
| $sent_http_content_type | |
| $sent_http_keep_alive | |
| $sent_http_last_modified | |
| $sent_http_location | |
| $sent_http_transfer_encoding | |
| $server_addr | 伺服器的位址 |
| $server_name | 伺服器名稱 |
| $server_port | 賜福端使用的 Port |
| $server_protocol | |
| $uri |
$uri 不會包含參數 |