Klaus Demo nginx / 6d2eb20
nginx-0.1.0-2004-09-30-10:38:49 import Igor Sysoev 17 years ago
4 changed file(s) with 33 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
4444 if [ $HTTP_REWRITE = YES ]; then
4545 if [ $PCRE = NONE -o $PCRE = NO ]; then
4646 echo "$0: error: HTTP rewrite module requires PCRE library."
47 echo $ngx_n "You can disable the module by using" $ngx_c
47 echo $ngx_n "You can disable the module by using " $ngx_c
4848 echo "--without-http_rewrite_module option"
49 echo "or you have to enable PCRE support"
49 echo "or you have to enable PCRE support."
5050 echo
5151
5252 exit 1
5757 if [ $HTTP_GZIP = YES ]; then
5858 if [ $ZLIB = NONE -o $ZLIB = NO ]; then
5959 echo "$0: error: HTTP gzip module requires zlib library."
60 echo $ngx_n "You can disable the module by using" $ngx_c
60 echo $ngx_n "You can disable the module by using " $ngx_c
6161 echo "--without-http_gzip_module option"
62 echo "or you have to enable zlib support"
62 echo "or you have to enable zlib support."
6363 echo
6464
6565 exit 1
5757 #include <ngx_regex.h>
5858 #endif
5959 #include <ngx_rbtree.h>
60 #include <ngx_radix_tree.h>
6160 #include <ngx_times.h>
6261 #include <ngx_inet.h>
6362 #include <ngx_cycle.h>
252252 #endif
253253
254254 ngx_log.file = &ngx_stderr;
255
256 #ifdef NGX_ERROR_LOG_PATH
257
255258 ngx_log.log_level = NGX_LOG_ERR;
256
257 #ifdef NGX_ERROR_LOG_PATH
258259
259260 fd = ngx_open_file(NGX_ERROR_LOG_PATH, NGX_FILE_RDWR,
260261 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND);
283284 }
284285
285286 #endif
287
288 #else
289
290 ngx_log.log_level = NGX_LOG_INFO;
286291
287292 #endif
288293
374379
375380 value = cf->args->elts;
376381
377 cf->cycle->new_log->file->name = value[1];
378
379 if (ngx_conf_full_name(cf->cycle, &cf->cycle->new_log->file->name)
382 if (value[1].len == 6 && ngx_strcmp(value[1].data, "stderr") == 0) {
383 cf->cycle->new_log->file->fd = ngx_stderr.fd;
384 cf->cycle->new_log->file->name.len = 0;
385 cf->cycle->new_log->file->name.data = NULL;
386
387 } else {
388 cf->cycle->new_log->file->name = value[1];
389
390 if (ngx_conf_full_name(cf->cycle, &cf->cycle->new_log->file->name)
380391 == NGX_ERROR)
381 {
382 return NGX_CONF_ERROR;
392 {
393 return NGX_CONF_ERROR;
394 }
383395 }
384396
385397 return ngx_set_error_log_levels(cf, cf->cycle->new_log);
8181 return NGX_AGAIN;
8282 }
8383
84 if (sslerr == SSL_ERROR_WANT_WRITE) {
85 ngx_log_error(NGX_LOG_ALERT, c->log, err,
86 "SSL wants to write%s", handshake);
87 return NGX_ERROR;
8488 #if 0
85 if (sslerr == SSL_ERROR_WANT_WRITE) {
86 return NGX_AGAIN;
87 }
89 return NGX_AGAIN;
8890 #endif
91 }
8992
9093 if (!SSL_is_init_finished(c->ssl->ssl)) {
9194 handshake = "in SSL handshake";
260263 return NGX_AGAIN;
261264 }
262265
266 if (sslerr == SSL_ERROR_WANT_READ) {
267 ngx_log_error(NGX_LOG_ALERT, c->log, err,
268 "SSL wants to read%s", handshake);
269 return NGX_ERROR;
263270 #if 0
264 if (sslerr == SSL_ERROR_WANT_READ) {
265271 return NGX_AGAIN;
266272 }
267273 #endif