TEST_BUILD_DEVPOLL=NO
+SELECT=YES
+POLL=YES
+
HTTP_REWRITE=YES
HTTP_GZIP=YES
HTTP_PROXY=YES
--builddir=*) OBJS="$value" ;;
+ --without-select_module) SELECT=NO ;;
+ --without-poll_module) POLL=NO ;;
+
--without-http_rewrite_module) HTTP_REWRITE=NO ;;
--without-http_gzip_module) HTTP_GZIP=NO ;;
--without-http_proxy_module) HTTP_PROXY=NO ;;
if [ $help = yes ]; then
echo
- echo " --help this message"
+ echo " --help this message"
+ echo
+
+ echo " --without-select_module disable select_module"
+ echo " --without-poll_module disable poll_module"
- echo " --without-http_gzip_module disable http_gzip_module"
- echo " --without-http_proxy_module disable http_proxy_module"
+ echo " --without-http_rewrite_module disable http_rewrite_module"
+ echo " --without-http_gzip_module disable http_gzip_module"
+ echo " --without-http_proxy_module disable http_proxy_module"
- echo " --with-cc=NAME name of or path to C compiler"
+ echo " --with-cc=NAME name of or path to C compiler"
echo
- echo " --with-pcre=DIR path to PCRE library"
- echo " --with-md5=DIR path to md5 library"
- echo " --with-zlib=DIR path to zlib library"
+ echo " --with-pcre=DIR path to PCRE library"
+ echo " --with-md5=DIR path to md5 library"
+ echo " --with-zlib=DIR path to zlib library"
echo
exit 1
cmcf->phases[NGX_HTTP_CONTENT_PHASE].type = NGX_OK;
- /* create the lists of the ports, the addresses and the server names
- to allow quickly find the server core module configuration at run-time */
+ /*
+ * create the lists of the ports, the addresses and the server names
+ * to allow quickly find the server core module configuration at run-time
+ */
ngx_init_array(in_ports, cf->pool, 10, sizeof(ngx_http_in_port_t),
NGX_CONF_ERROR);
s_name = cscfp[s]->server_names.elts;
for (n = 0; n < cscfp[s]->server_names.nelts; n++) {
- /* add the server name and server core module
- configuration to the address:port */
+ /*
+ * add the server name and server core module
+ * configuration to the address:port
+ */
/* TODO: duplicate names can be checked here */
name->core_srv_conf = s_name[n].core_srv_conf;
}
- /* check duplicate "default" server that
- serves this address:port */
+ /*
+ * check duplicate "default" server that
+ * serves this address:port
+ */
if (lscf[l].flags & NGX_HTTP_DEFAULT_SERVER) {
if (in_addr[a].flags
} else if (in_addr[a].addr == INADDR_ANY) {
- /* "*:port" must be the last resort so move it
- to the end of the address list and add
- the new address at its place */
+ /*
+ * "*:port" must be the last resort so move it
+ * to the end of the address list and add
+ * the new address at its place
+ */
ngx_test_null(inaddr,
ngx_push_array(&in_port[p].addrs),
in_addr[a].flags = lscf[l].flags;
in_addr[a].core_srv_conf = cscfp[s];
- /* create the empty list of the server names that
- can be served on this address:port */
+ /*
+ * create the empty list of the server names that
+ * can be served on this address:port
+ */
ngx_init_array(inaddr->names, cf->pool, 10,
sizeof(ngx_http_server_name_t),
if (!addr_found) {
- /* add the address to the addresses list that
- bound to this port */
+ /*
+ * add the address to the addresses list that
+ * bound to this port
+ */
ngx_test_null(inaddr,
ngx_push_array(&in_port[p].addrs),
inaddr->flags = lscf[l].flags;
inaddr->core_srv_conf = cscfp[s];
- /* create the empty list of the server names that
- can be served on this address:port */
+ /*
+ * create the empty list of the server names that
+ * can be served on this address:port
+ */
ngx_init_array(inaddr->names, cf->pool, 10,
sizeof(ngx_http_server_name_t),
inaddr->flags = lscf[l].flags;
inaddr->core_srv_conf = cscfp[s];
- /* create the empty list of the server names that
- can be served on this address:port */
+ /*
+ * create the empty list of the server names that
+ * can be served on this address:port
+ */
ngx_init_array(inaddr->names, cf->pool, 10,
sizeof(ngx_http_server_name_t),
}
}
- /* if the all server names point to the same server
- then we do not need to check them at run-time */
+ /*
+ * if the all server names point to the same server
+ * then we do not need to check them at run-time
+ */
if (!virtual_names) {
in_addr[a].names.nelts = 0;
}
}
- /* if there's the binding to "*:port" then we need to bind()
- to "*:port" only and ignore the other bindings */
+ /*
+ * if there's the binding to "*:port" then we need to bind()
+ * to "*:port" only and ignore the other bindings
+ */
if (in_addr[a - 1].addr == INADDR_ANY) {
a--;
in_addr = in_port[p].addrs.elts;
if (in_addr[in_port[p].addrs.nelts - 1].addr != INADDR_ANY) {
- /* if this port has not the "*:port" binding then create
- the separate ngx_http_in_port_t for the all bindings */
+ /*
+ * if this port has not the "*:port" binding then create
+ * the separate ngx_http_in_port_t for the all bindings
+ */
ngx_test_null(inport,
ngx_palloc(cf->pool,