]> git.kaiwu.me - nginx.git/commit
fix r3218:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 21 Oct 2009 16:27:48 +0000 (16:27 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 21 Oct 2009 16:27:48 +0000 (16:27 +0000)
commit2a634f53421af2fb09dcd9f3b0641723eb0370a6
tree89f849e7e144623d9598564223bf4c7db704c2de
parentd2d0931ed5a40d63bc6d9593c06604cb5e0eeca6
fix r3218:

Initially building lists of ports, addresses, and server names had been
placed at final configuration stage, because complete set of the "listen"s
and the "server_names" were required for this operation. r3218 broke it,
because the "listen"s go usually first in configuration, and
cscf->server_names is empty at this stage, therefore no virtual names
were configured.

Now server configurations are stored in array for each address:port
to configure virtual names. Also regex captures flag is moved from
server names to core server configuration.
src/http/ngx_http.c
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_request.c