Mercurial > hg > nginx-vendor-0-6
comparison src/core/nginx.c @ 48:6cfc63e68377 NGINX_0_1_24
nginx 0.1.24
*) Feature: the ngx_http_ssi_filter_module supports the QUERY_STRING
and DOCUMENT_URI variables.
*) Bugfix: the ngx_http_autoindex_module may some times return the 404
response for existent directory, if this directory was used in
"alias" directive.
*) Bugfix: the ngx_http_ssi_filter_module ran incorrectly for large
responses.
*) Bugfix: the lack of the "Referer" header line was always accounted
as valid referrer.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 04 Mar 2005 00:00:00 +0300 |
parents | 7ca9bdc82b3f |
children | 72eb30262aac |
comparison
equal
deleted
inserted
replaced
47:4ae32548452c | 48:6cfc63e68377 |
---|---|
117 | 117 |
118 | 118 |
119 ngx_uint_t ngx_max_module; | 119 ngx_uint_t ngx_max_module; |
120 | 120 |
121 | 121 |
122 | 122 int |
123 int main(int argc, char *const *argv) | 123 main(int argc, char *const *argv) |
124 { | 124 { |
125 ngx_int_t i; | 125 ngx_int_t i; |
126 ngx_log_t *log; | 126 ngx_log_t *log; |
127 ngx_cycle_t *cycle, init_cycle; | 127 ngx_cycle_t *cycle, init_cycle; |
128 ngx_core_conf_t *ccf; | 128 ngx_core_conf_t *ccf; |
250 | 250 |
251 return 0; | 251 return 0; |
252 } | 252 } |
253 | 253 |
254 | 254 |
255 static ngx_int_t ngx_add_inherited_sockets(ngx_cycle_t *cycle) | 255 static ngx_int_t |
256 ngx_add_inherited_sockets(ngx_cycle_t *cycle) | |
256 { | 257 { |
257 u_char *p, *v, *inherited; | 258 u_char *p, *v, *inherited; |
258 ngx_socket_t s; | 259 ngx_socket_t s; |
259 ngx_listening_t *ls; | 260 ngx_listening_t *ls; |
260 | 261 |
405 | 406 |
406 return NGX_OK; | 407 return NGX_OK; |
407 } | 408 } |
408 | 409 |
409 | 410 |
410 static ngx_int_t ngx_save_argv(ngx_cycle_t *cycle, int argc, char *const *argv) | 411 static ngx_int_t |
412 ngx_save_argv(ngx_cycle_t *cycle, int argc, char *const *argv) | |
411 { | 413 { |
412 size_t len; | 414 size_t len; |
413 ngx_int_t i; | 415 ngx_int_t i; |
414 | 416 |
415 ngx_os_argv = (char **) argv; | 417 ngx_os_argv = (char **) argv; |
442 | 444 |
443 return NGX_OK; | 445 return NGX_OK; |
444 } | 446 } |
445 | 447 |
446 | 448 |
447 static void *ngx_core_module_create_conf(ngx_cycle_t *cycle) | 449 static void * |
450 ngx_core_module_create_conf(ngx_cycle_t *cycle) | |
448 { | 451 { |
449 ngx_core_conf_t *ccf; | 452 ngx_core_conf_t *ccf; |
450 | 453 |
451 if (!(ccf = ngx_pcalloc(cycle->pool, sizeof(ngx_core_conf_t)))) { | 454 if (!(ccf = ngx_pcalloc(cycle->pool, sizeof(ngx_core_conf_t)))) { |
452 return NULL; | 455 return NULL; |
473 | 476 |
474 return ccf; | 477 return ccf; |
475 } | 478 } |
476 | 479 |
477 | 480 |
478 static char *ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) | 481 static char * |
482 ngx_core_module_init_conf(ngx_cycle_t *cycle, void *conf) | |
479 { | 483 { |
480 ngx_core_conf_t *ccf = conf; | 484 ngx_core_conf_t *ccf = conf; |
481 | 485 |
482 #if !(NGX_WIN32) | 486 #if !(NGX_WIN32) |
483 struct passwd *pwd; | 487 struct passwd *pwd; |
541 | 545 |
542 return NGX_CONF_OK; | 546 return NGX_CONF_OK; |
543 } | 547 } |
544 | 548 |
545 | 549 |
546 static char *ngx_set_user(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | 550 static char * |
551 ngx_set_user(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | |
547 { | 552 { |
548 #if (NGX_WIN32) | 553 #if (NGX_WIN32) |
549 | 554 |
550 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, | 555 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, |
551 "\"user\" is not supported, ignored"); | 556 "\"user\" is not supported, ignored"); |
601 | 606 |
602 #endif | 607 #endif |
603 } | 608 } |
604 | 609 |
605 | 610 |
606 static char *ngx_set_priority(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | 611 static char * |
612 ngx_set_priority(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | |
607 { | 613 { |
608 ngx_core_conf_t *ccf = conf; | 614 ngx_core_conf_t *ccf = conf; |
609 | 615 |
610 ngx_str_t *value; | 616 ngx_str_t *value; |
611 ngx_uint_t n, minus; | 617 ngx_uint_t n, minus; |