Welcome! Log In Create A New Profile

Advanced

Re: В $upstream response time показывается timestamp (1.1.14)

Валентин Бартенев
February 15, 2012 03:34AM
On Wednesday 15 February 2012 12:27:54 A_HREF wrote:
> Проксирую запросы к бэкенду (2 х IIS+ASP.NET)
> через Nginx.
>
> location / {
> proxy_pass http://backend;
> proxy_cache off;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> add_header X-Time $upstream_response_time;
> }
>
> Так вот, в X-Time показывается что-то типа
> X-Time 1329323249.014
>
>
> nginx version: nginx/1.1.14
> built by gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
> configure arguments: --without-http_autoindex_module
> --without-http_ssi_module --without-http_userid_module
> --without-http_auth_basic_module --without-http_geo_module
> --without-http_fastcgi_module --without-http_empty_gif_module
> --with-openssl=/lib64 --with-http_stub_status_module
>

А проблема в чем заключается?

http://nginx.org/ru/docs/http/ngx_http_upstream_module.html#variables
"$upstream_response_time - хранит времена ответов серверов в секундах с точностью
до миллисекунд. Несколько ответов также разделяются запятыми и двоеточиями."

Вы ожидали какой-то другой формат?

--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Re: В $upstream response time показывается timestamp (1.1.14)

Валентин Бартенев February 15, 2012 03:34AM

Re: В $upstream response time показывается timestamp (1.1.14)

A_HREF February 15, 2012 03:40AM

Re: В $upstream response time показывается timestamp (1.1.14)

A_HREF February 15, 2012 03:49AM

Re: В $upstream response time показывается timestamp (1.1.14)

Alexandre Snarskii February 15, 2012 03:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
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