diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-01-29 07:25:51 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-01-29 07:25:51 +0000 |
commit | fe5cb6b9e9195718578938d7cd236fe538dbb331 (patch) | |
tree | 3e6dc306afbb64c76a3cdd8eeeba1db23792dcb7 /src/http/ngx_http_core_module.h | |
parent | a19a85e600c1c4d7daa9fdd20df3777169b5dc2b (diff) | |
download | nginx-fe5cb6b9e9195718578938d7cd236fe538dbb331.tar.gz nginx-fe5cb6b9e9195718578938d7cd236fe538dbb331.zip |
nginx-0.0.1-2003-01-29-10:25:51 import
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r-- | src/http/ngx_http_core_module.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 37fe17e79..522cb25c2 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h @@ -8,12 +8,12 @@ typedef struct { - int addr; - int port; - int family; - int flags; /* 'default' */ - ngx_conf_file_t *conf_file; - int line; + int addr; + int port; + int family; + int flags; /* 'default' */ + ngx_str_t file_name; + int line; } ngx_http_listen_t; @@ -23,30 +23,33 @@ typedef struct { ngx_array_t listen; /* 'listen', array of ngx_http_listen_t */ ngx_array_t server_names; /* 'server_name', array of ngx_http_server_name_t */ - ngx_http_conf_ctx_t *ctx; + ngx_http_conf_ctx_t *ctx; /* server ctx */ } ngx_http_core_srv_conf_t; -typedef struct { - ngx_str_t name; - ngx_http_core_srv_conf_t *core_srv_conf; -} ngx_http_server_name_t; - +/* list of structures to find core_srv_conf quickly at run time */ typedef struct { int port; - ngx_array_t addr; + ngx_array_t addr; /* array of ngx_http_in_addr_t */ } ngx_http_in_port_t; typedef struct { u_int32_t addr; - ngx_array_t names; - int flags; - ngx_http_core_srv_conf_t *core_srv_conf; + ngx_array_t names; /* array of ngx_http_server_name_t */ + ngx_http_core_srv_conf_t *core_srv_conf; /* default server conf + for this address:port */ + int flags; } ngx_http_in_addr_t; #define NGX_HTTP_DEFAULT_SERVER 1 +typedef struct { + ngx_str_t name; + ngx_http_core_srv_conf_t *core_srv_conf; /* virtual name server conf */ +} ngx_http_server_name_t; + + typedef struct { |