comparison src/http/ngx_http_core_module.h @ 6885:25203fc377fb

Implemented the "server_tokens build" option. Based on a patch by Tom Thorogood.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 31 Jan 2017 12:09:40 +0300
parents d15172ebb400
children d2b2ff157da5
comparison
equal deleted inserted replaced
6884:640f03529395 6885:25203fc377fb
51 51
52 52
53 #define NGX_HTTP_KEEPALIVE_DISABLE_NONE 0x0002 53 #define NGX_HTTP_KEEPALIVE_DISABLE_NONE 0x0002
54 #define NGX_HTTP_KEEPALIVE_DISABLE_MSIE6 0x0004 54 #define NGX_HTTP_KEEPALIVE_DISABLE_MSIE6 0x0004
55 #define NGX_HTTP_KEEPALIVE_DISABLE_SAFARI 0x0008 55 #define NGX_HTTP_KEEPALIVE_DISABLE_SAFARI 0x0008
56
57
58 #define NGX_HTTP_SERVER_TOKENS_OFF 0
59 #define NGX_HTTP_SERVER_TOKENS_ON 1
60 #define NGX_HTTP_SERVER_TOKENS_BUILD 2
56 61
57 62
58 typedef struct ngx_http_location_tree_node_s ngx_http_location_tree_node_t; 63 typedef struct ngx_http_location_tree_node_s ngx_http_location_tree_node_t;
59 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t; 64 typedef struct ngx_http_core_loc_conf_s ngx_http_core_loc_conf_t;
60 65
391 ngx_flag_t msie_padding; /* msie_padding */ 396 ngx_flag_t msie_padding; /* msie_padding */
392 ngx_flag_t msie_refresh; /* msie_refresh */ 397 ngx_flag_t msie_refresh; /* msie_refresh */
393 ngx_flag_t log_not_found; /* log_not_found */ 398 ngx_flag_t log_not_found; /* log_not_found */
394 ngx_flag_t log_subrequest; /* log_subrequest */ 399 ngx_flag_t log_subrequest; /* log_subrequest */
395 ngx_flag_t recursive_error_pages; /* recursive_error_pages */ 400 ngx_flag_t recursive_error_pages; /* recursive_error_pages */
396 ngx_flag_t server_tokens; /* server_tokens */ 401 ngx_uint_t server_tokens; /* server_tokens */
397 ngx_flag_t chunked_transfer_encoding; /* chunked_transfer_encoding */ 402 ngx_flag_t chunked_transfer_encoding; /* chunked_transfer_encoding */
398 ngx_flag_t etag; /* etag */ 403 ngx_flag_t etag; /* etag */
399 404
400 #if (NGX_HTTP_GZIP) 405 #if (NGX_HTTP_GZIP)
401 ngx_flag_t gzip_vary; /* gzip_vary */ 406 ngx_flag_t gzip_vary; /* gzip_vary */