Michal Kowalski | 1 Dec 03:32 2009
Picon

Re: Multiple Entries in Log File

On Mon, Nov 30, 2009 at 8:36 PM, cpriest <nginx-forum <at> nginx.us> wrote:
> I have nginx setup as a load balancer to three servers.  Is there *any* reason a request would hit the log
file more than once unless there were actually more than one incoming (from the internet) requests?
>
> For example, if one of my internal servers is down or slow and a proxy timeout setting is reached, would that
cause nginx to log twice to the access log?  Would there be any message about said occurrence in any error
or other log?
>

uhm? http://forum.nginx.org/read.php?2,26189,26201#msg-26201

mk
--

-- 
(let* ((mk "Michał Kowalski") (sig `(lambda () ,mk))) ((eval sig)))

_______________________________________________
nginx mailing list
nginx <at> nginx.org
http://nginx.org/mailman/listinfo/nginx
Dinh Pham | 1 Dec 03:57 2009

nginx-0.8.29 released

FYI

Igor has just released Nginx 0.8.39

Original: http://nginx.org/pipermail/nginx-announce/2009/000001.html

Quote:
--------------------

Changes with nginx 0.8.29                                        30 Nov
2009

    *) Change: now the "009" status code is written to an access log for
       proxied HTTP/0.9 responses.

    *) Feature: the "addition_types", "charset_types", "gzip_types",
       "ssi_types", "sub_filter_types", and "xslt_types" directives
support
       an "*" parameter.

    *) Feature: GCC 4.1+ built-in atomic operations usage.
       Thanks to W-Mark Kubacki.

    *) Feature: the --with-libatomic[=DIR] option in the configure.
       Thanks to W-Mark Kubacki.

    *) Bugfix: listen unix domain socket had limited access rights.

    *) Bugfix: cached HTTP/0.9 responses were handled incorrectly.

(Continue reading)

cpriest | 1 Dec 05:06 2009
Picon

Re: Multiple Entries in Log File

Why did that solve the problem for this individual?  This doesn't really answer my question anyways, I'm
trying to determine why it would be logging it twice, not how to get around the issue.

The servers behind nginx are showing two connections...

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26839,26934#msg-26934

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

cpriest | 1 Dec 05:10 2009
Picon

Re: Why does Nginx log same request two times?

Was it ever determined whether this was an issue with the logger or with double-connections?  I'm getting
double-log entries while using nginx as a load balancer in front of 3 other servers.  For a double-log entry
on nginx side, there are two individual log entries on the target servers.

Any idea if my issue is related to this one?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26189,26936#msg-26936

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

dobe | 1 Dec 06:28 2009
Picon

Re: case sensitive locations on macos x

thanks for the fast answer, this did the trick

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26771,26943#msg-26943

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

Igor Sysoev | 1 Dec 08:18 2009
Picon

Re: How to log the time in the UTC time format?

On Tue, Dec 01, 2009 at 12:52:24AM +0300, Maxim Dounin wrote:

> Hello!
> 
> On Mon, Nov 30, 2009 at 04:31:20PM -0500, naltimari wrote:
> 
> > I need my logs in UTC time format, but nginx by default uses the local time format (I guess in GMT format).
> > 
> > Can it be done? How?
> 
> There is no "UTC time format".  If you mean time zone - just set 
> appropriate one in environment while starting nginx (via TZ 
> environment variable).

BTW, TZ can be set in nginx.conf at global level:

env  TZ=UTC;

--

-- 
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

Igor Sysoev | 1 Dec 09:08 2009
Picon

Re: Why does Nginx log same request two times?

On Sat, Nov 28, 2009 at 02:43:04AM -0500, rayallenwu wrote:

> Thanks Jimmy,
> 
> The problem has been solved by adding "buffer=32k" for access_log
>  http://wiki.nginx.org/NginxHttpLogModule#access_log

Could you create debug log without the buffer ?

error_log  /path/to/log  debug;

--

-- 
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

Igor Sysoev | 1 Dec 09:10 2009
Picon

Re: Multiple Entries in Log File

On Mon, Nov 30, 2009 at 02:36:55PM -0500, cpriest wrote:

> I have nginx setup as a load balancer to three servers.  Is there *any* reason a request would hit the log file
more than once unless there were actually more than one incoming (from the internet) requests?
> 
> For example, if one of my internal servers is down or slow and a proxy timeout setting is reached, would that
cause nginx to log twice to the access log?  Would there be any message about said occurrence in any error or
other log?

nginx should log once in access_log and may log several times in error_log.
Could you create debug log ?

--

-- 
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx

nt001 | 1 Dec 09:34 2009
Picon

FastCGI Param

Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load
php pages, nginx got "No input file specified." So I have sloved this by looking at fastcgi_param. ...
my www dir is /www
pages dir is /www/page1, /www/page2, /www/page3
my fastcgi parameters in nginx.conf is:

        location ~ \.php$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /www$fastcgi_script_name;
            include        /usr/pkg/etc/nginx/fastcgi_params;
        }

and have still recived "No input file specified." when I use

fastcgi_param  SCRIPT_FILENAME  /www$fastcgi_script_name;

but when i type the site1, 2 or 3 folder, don't have problems ... something like:

fastcgi_param  SCRIPT_FILENAME  /www/site1/$fastcgi_script_name; (or
/www/site1$fastcgi_script_name; # will be the same)

Sooo my question, example I hosting about more than 100 web pages, this mean I have 100+ folders in /www dir.
Are I must need to write 100 lines for fastcgi workin' for all?

By the way I have tired to try

fastcgi_param  SCRIPT_FILENAME  /www/*/$fastcgi_script_name;
fastcgi_param  SCRIPT_FILENAME  /www/*$fastcgi_script_name;
fastcgi_param  SCRIPT_FILENAME  /www/$*$fastcgi_script_name;
(Continue reading)

gdtv | 1 Dec 10:45 2009
Picon

How to limit speed of transmission on some kind of condition

Hello,
The wiki says:

server {
  if ($slow) {
    set $limit_rate  4k;
  }
}

How to define $slow , config $slow or set $slow ?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,26983,26983#msg-26983

_______________________________________________
nginx mailing list
nginx@...
http://nginx.org/mailman/listinfo/nginx


Gmane