diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-11-07 13:46:29 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-11-07 13:46:29 +0000 |
| commit | ce87ce477e9c349fbff1d30e3a45a8f0cc928ef6 (patch) | |
| tree | 5e275a216ad3398bd155782f3fa73673cd47d3e4 /src/http/ngx_http_core_module.h | |
| parent | c2378f80289ead8157c63ac6216836bab6e4294b (diff) | |
| download | nginx-ce87ce477e9c349fbff1d30e3a45a8f0cc928ef6.tar.gz nginx-ce87ce477e9c349fbff1d30e3a45a8f0cc928ef6.tar.bz2 | |
r1386, r1388, r1389, r1580, r1581 merge:
regex in server_name and valid_referers
Diffstat (limited to 'src/http/ngx_http_core_module.h')
| -rw-r--r-- | src/http/ngx_http_core_module.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 52ac5ddf3..79cd1f653 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -151,8 +151,10 @@ typedef struct { typedef struct { in_addr_t addr; + /* the default server configuration for this address:port */ ngx_http_core_srv_conf_t *core_srv_conf; + ngx_http_virtual_names_t *virtual_names; } ngx_http_in_addr_t; @@ -180,6 +182,11 @@ typedef struct { ngx_array_t names; /* array of ngx_http_server_name_t */ +#if (NGX_PCRE) + ngx_uint_t nregex; + ngx_http_server_name_t *regex; +#endif + /* the default server configuration for this address:port */ ngx_http_core_srv_conf_t *core_srv_conf; @@ -190,10 +197,13 @@ typedef struct { } ngx_http_conf_in_addr_t; -typedef struct { - ngx_str_t name; +struct ngx_http_server_name_s { +#if (NGX_PCRE) + ngx_regex_t *regex; +#endif ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */ -} ngx_http_server_name_t; + ngx_str_t name; +}; typedef struct { |
