diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-08-12 19:48:12 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-12 19:48:12 +0000 |
commit | 43c3bf42dbd415a9244e4265107ed9f15a82855b (patch) | |
tree | 6d00f28770412c7e84085ed319d83c31d3455432 /src/http/ngx_http_core_module.h | |
parent | 307ab0ded686d43c7e8717f954ee16f47ff56433 (diff) | |
download | nginx-43c3bf42dbd415a9244e4265107ed9f15a82855b.tar.gz nginx-43c3bf42dbd415a9244e4265107ed9f15a82855b.zip |
regex in server_name
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index dc443f64a..ec96c3ee1 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,12 @@ 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 +198,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 { |