Welcome! Log In Create A New Profile

Advanced

Re: nginx configure check fault?

Maxim Dounin
August 20, 2009 04:28AM
Hello!

On Thu, Aug 20, 2009 at 03:49:33PM +0800, lhmwzy wrote:

> Like this:
>
> ....
> server {
> listen 80;
> server_name 10.66.23.98 boy.zeuscn.com;
>
> #charset koi8-r;
>
> #access_log /var/log/nginx-access.log;
> access_log off
>
> root /usr/www/webroot;
>
> index index.php index.html index.htm;
> ..........
>
> nginx syntax check pass OK.

Patch.

--- a/src/http/modules/ngx_http_log_module.c
+++ b/src/http/modules/ngx_http_log_module.c
@@ -835,7 +835,7 @@ ngx_http_log_set_log(ngx_conf_t *cf, ngx

value = cf->args->elts;

- if (ngx_strcmp(value[1].data, "off") == 0) {
+ if (cf->args->nelts == 2 && ngx_strcmp(value[1].data, "off") == 0) {
llcf->off = 1;
return NGX_CONF_OK;
}

Maxim Dounin
Subject Author Posted

Re: nginx configure check fault?

lhmwzy August 20, 2009 03:49AM

Re: nginx configure check fault?

Maxim Dounin August 20, 2009 04:28AM

Re: nginx configure check fault?

Igor Sysoev August 20, 2009 04:32AM

Re: nginx configure check fault?

lhmwzy August 22, 2009 07:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready