0.135(1100米用多少时间的时间)+.0146(1100米用多少时间的时间)=21.48(1米多少钱) 分别求0.135和0.146分

求教成年女性1米6的标准体重_百度拇指医生
&&&网友互助
?求教成年女性1米6的标准体重
拇指医生提醒您:该问题下为网友贡献,仅供参考。
公式:(身高-体重)/体重=1.8-2.3 &br /&所以你的体重在55KG时,你的身材最匀称、最美丽!
向医生提问
完善患者资料:*性别:
公式:(身高-体重)/体重=1.8-2.3 &br /&所以你的体重在55KG时,你的身材最匀称、最美丽!
身高(厘米)减去105等于(公斤),同身高女性约比男重5公布
标准体重和肥胖
&br /&人有胖瘦之分,体重过轻则为瘦,过重则为胖,那么以什么样的标准来衡量是胖还是瘦呢?这当然必须有个参照值,这个参照值,我们就把它称之为标准体重。目前在我国尚没有统一的标准体重数据。较普遍采用的计算方法有两种:
&br /&一种是:成年:(身高(厘米)-100〕*0.9= 标准体重(千克)
&br /&另一种是:男性:身高(厘米)-105= 标准体重(千克),
&br /&女性:身高(厘米)-100= 标准体重(千克)
&br /&以上两种计算方法,基本已被广泛采用。
&br /&另外,军事科学院还推出一计算中国人理想体重的方法:
&br /&北方人理想体重(千克)=(身高厘米-150) x 0.6+50,南方人理想体重(千克)=(身高厘米-150) x 0.6+48,这一计算方法,似乎比较适合南北地区中国人。 儿童标准体重的计算,简便的方法是: 1~6个月:出生体重(千克)十月龄*0.6= 标准体重(千克);7~ 12个月:出生体重(千克)十月龄 X 0.5= 标准体重(千克);1岁以上:8十年龄x2= 标准体重(千克)
&br /&但是,由于人的体重与许多因素有关,不同人体之间有差异,在同一天不同的时间也会有一定的变化,加之所处地理位置(如地心引力的原因)、季节、气候、自身情况的不同,对体重也有一定影响,因而很难完全符合标准体重。也就是说,难以用一个恒定值来表示,而应当是一个数值范围,我们把这个数值范围称之为正常值,一般在标准体重+-10%以内的范围。超过这一范围,就可称之为异常体重。 实测体重超过标准体重,但超出部分< 20%者称为超重;实测体重超过标准体重 20%以上,并有脂肪百分率(F%)超过30%者则可诊断为肥胖病。体重超过标准体重的30 %一50%,F%超过35%一45%者称中度肥胖病;超过标准体重50%以上,F%超过45%以上者称为重度肥胖病。
为您推荐:
* 百度拇指医生解答内容由公立医院医生提供,不代表百度立场。
* 由于网上问答无法全面了解具体情况,回答仅供参考,如有必要建议您及时当面咨询医生From nginx-forum at nginx.us
1 08:33:55 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Mon, 01 Jul :55 -0400
Subject: Cannot totally switch off caching
Message-ID:
For some testing I need to switch off a nginx caching (nginx + php-fpm). Now
I have a trouble - when I request a server (PHP app) first time, response
generated about 10 sec (its ok), but when a request a server another time
(during approx 1-2 mins from first request) response is returned within
50-100 msec, as I understand from some cache.
I trying to get pages via wget and httperf.
My configurations:
I create a 2 config templates named default and php:
index index.html index.
location /status {
location / {
try_files $uri $uri/ /index.php?q=$uri&$
# ????????? ?????? ? ??????? .htaccess ? .htpassword
location ~ /\.ht {
location = /favicon.ico {
location = /robots.txt {
php (initial variant):
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.
include fastcgi_
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
host settings in sites-enabled:
listen 80;
access_log /var/log/nginx/site.access_
error_log /var/log/nginx/site.error_
root /var/www/
include /etc/nginx/templates/
include /etc/nginx/templates/
Tests running:
httperf --server site.local --num-conns 1 --verbose >perf.log
First request - approx 10 sec
Second request approx 100 msec.
I trying to disable caching with:
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.
include fastcgi_
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_no_cache 1;
fastcgi_cache_bypass 1;
+restarting nginx ? php-fpm, but this has no effect.
Please help.
Best regards,
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,433#msg-240433
From nginx-forum at nginx.us
1 10:26:14 2013
From: nginx-forum at nginx.us (rootberry)
Date: Mon, 01 Jul :14 -0400
Subject: Rewriting pages to re-rendered snapshots
Message-ID:
I have a very Javascript heavy website which is being served by nginx. It
all works great, except Google is having trouble indexing me. I've made
pre-rendered snapshots of all my pages using Phantomjs and these are stored
in /snapshots (relative to my website's root).
I've been using this rewrite rule to detect the Google bot and serve it a
location / {
if ($args ~ "_escaped_fragment_=") {
rewrite ^/(.*)$ /snapshots/$1.
It works for all pages apart from the homepage. In the snapshots directory,
the home page is called index.html, however the Google bot requests
/?_escaped_fragment_= when it wants the home page, which
makes this rewrite rule return a 404.
How can I adapt this rule to return the index.html snapshot when / is
requested?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,435#msg-240435
From contact
1 10:44:40 2013
From: contact
(Jonathan Matthews)
Date: Mon, 1 Jul :40 +0100
Subject: Rewriting pages to re-rendered snapshots
In-Reply-To:
References:
Message-ID:
I'm sure others will give you better methods to sort this but, as a
temporary fix, how about a separate stanza like this:
location = / {
#special index.html UA-sniffing + rewrite logic
From nginx-forum at nginx.us
1 10:49:40 2013
From: nginx-forum at nginx.us (rootberry)
Date: Mon, 01 Jul :40 -0400
Subject: Rewriting pages to re-rendered snapshots
In-Reply-To:
References:
Message-ID:
Not sure what you mean Jonathan, I can already detect the Google bot by
using ?_escaped_fragment= which is also Google's preferred way over user
agent sniffing. I just need to adapt the rewrite rule to serve index.html to
requests for /.
Thanks for the reply, though!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,437#msg-240437
From contact
1 11:38:41 2013
From: contact
(Jonathan Matthews)
Date: Mon, 1 Jul :41 +0100
Subject: Rewriting pages to re-rendered snapshots
In-Reply-To:
References:
Message-ID:
Duplicate your entire "location / {}" as "location = / {}" (which
matches *only* "/"), and when you detect google, serve
/snapshots/whatever/index.html.
From mdounin at mdounin.ru
1 11:40:15 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Mon, 1 Jul :15 +0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On Mon, Jul 01, 2013 at 04:33:55AM -0400, imanenkov wrote:
> Greeting!
> For some testing I need to switch off a nginx caching (nginx + php-fpm). Now
> I have a trouble - when I request a server (PHP app) first time, response
> generated about 10 sec (its ok), but when a request a server another time
> (during approx 1-2 mins from first request) response is returned within
> 50-100 msec, as I understand from some cache.
By default nginx doesn't cache anything.
You may want to look
into your php code to find out what is cached / causes reduced
response time in subsequent requests.
Maxim Dounin
http://nginx.org/en/donation.html
From igor.sverkos
1 12:23:37 2013
From: igor.sverkos
(Igor Sverkos)
Date: Mon, 1 Jul :37 +0200
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
and don't forget system's page cache. From my experience:
The files needed to process the first request aren't yet read, so
Linux has to read them from disk (slow).
Then, for the second and further requests, the files are in the page
cache (aka system buffer), so that Linux don't have to read them again
from disk. Access is now super fast.
From nginx-forum at nginx.us
1 12:32:32 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Mon, 01 Jul :32 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Maxim Dounin Wrote:
-------------------------------------------------------
> By default nginx doesn't cache anything.
You may want to look
> into your php code to find out what is cached / causes reduced
> response time in subsequent requests.
I think about it, but this is heavy app, and its cannot generate a page with
100-200 msec (unfortunatelly:) ).
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,442#msg-240442
From akunz at wishmedia.de
1 12:37:31 2013
From: akunz at wishmedia.de (Alexander Kunz)
Date: Mon, 01 Jul :31 +0200
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
and don't forget database's cache. You write about PHP, often there is
mysql also involved, which have the ability to cache.
Am 01.07., schrieb imanenkov:
> Greeting!
> For some testing I need to switch off a nginx caching (nginx + php-fpm). Now
> I have a trouble - when I request a server (PHP app) first time, response
> generated about 10 sec (its ok), but when a request a server another time
> (during approx 1-2 mins from first request) response is returned within
> 50-100 msec, as I understand from some cache.
> I trying to get pages via wget and httperf.
> My configurations:
> I create a 2 config templates named default and php:
> default:
> index index.html index.
> location /status {
> location / {
> try_files $uri $uri/ /index.php?q=$uri&$
> # ????????? ?????? ? ??????? .htaccess ? .htpassword
> location ~ /\.ht {
> location = /favicon.ico {
> log_not_
> location = /robots.txt {
> log_not_
> php (initial variant):
> location ~ \.php$ {
> try_files $uri =404;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.
> include fastcgi_
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
> host settings in sites-enabled:
> listen 80;
> access_log /var/log/nginx/site.access_
> error_log /var/log/nginx/site.error_
> root /var/www/
> include /etc/nginx/templates/
> include /etc/nginx/templates/
> Tests running:
> httperf --server site.local --num-conns 1 --verbose >perf.log
> First request - approx 10 sec
> Second request approx 100 msec.
> I trying to disable caching with:
> location ~ \.php$ {
> try_files $uri =404;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.
> include fastcgi_
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
> fastcgi_
> fastcgi_no_cache 1;
> fastcgi_cache_bypass 1;
> +restarting nginx ? php-fpm, but this has no effect.
> Please help.
> Best regards,
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,433#msg-240433
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
From ben at indietorrent.org
1 12:49:33 2013
From: ben at indietorrent.org (Ben Johnson)
Date: Mon, 01 Jul :33 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On 7/1/ AM, imanenkov wrote:
> For some testing I need to switch off a nginx caching (nginx + php-fpm). Now
> I have a trouble - when I request a server (PHP app) first time, response
> generated about 10 sec (its ok), but when a request a server another time
> (during approx 1-2 mins from first request) response is returned within
> 50-100 msec, as I understand from some cache.
Are you using some type of opcode-caching software, e.g. APC, memcached,
etc.? If you're convinced that PHP is doing the caching, I would disable
any opcode-caching software first.
From sb at waeme.net
1 15:29:20 2013
From: sb at waeme.net (Sergey Budnevitch)
Date: Mon, 1 Jul :20 +0400
Subject: GPG error on Nginx repository - NO_PUBKEY
In-Reply-To:
References:
Message-ID:
Jun2013, at 21:09 , B.R.
> We've added short explanation with links to gpg docs about how
> and why pgp signatures should be checked:
> http://nginx.org/en/linux_packages.html#signatures
> ?The link to Dewinter's website is broken.
> Maybe would you like to replace it with http://www.gnupg.org/documentation/howtos.en.html??
Unfortunately link to gpg minihowto on http://www.gnupg.org/documentation/howtos.en.html also
From nginx-forum at nginx.us
1 15:57:21 2013
From: nginx-forum at nginx.us (kgk)
Date: Mon, 01 Jul :21 -0400
Subject: How does FastCGI work under the covers?
In-Reply-To:
References:
Message-ID:
Hello Maxim,
Thank you so much for answering my previous questions!
Now I have a few
Will Nginx provide a FastCGI request only when it is 100% complete,
i.e., the browser has provided every necessary byte?
Will Nginx always accept 100% of a FastCGI response and hold it inside
internal buffers (or on disk), and not wait for the client (= web browser)?
Maxim Dounin Wrote:
-------------------------------------------------------
> FastCGI multiplexing isn't used by nginx.
That is, within a
> single connection to a fastcgi application only one request is
> sent, and then nginx will wait for a response.
More connections
> will be opened if there are multiple simulteneous requests.
> Maxim Dounin
> http://nginx.org/en/donation.html
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,453#msg-240453
From mdounin at mdounin.ru
1 16:15:41 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Mon, 1 Jul :41 +0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On Mon, Jul 01, 2013 at 08:32:32AM -0400, imanenkov wrote:
> Maxim Dounin Wrote:
> -------------------------------------------------------
> > By default nginx doesn't cache anything.
You may want to look
> > into your php code to find out what is cached / causes reduced
> > response time in subsequent requests.
> I think about it, but this is heavy app, and its cannot generate a page with
> 100-200 msec (unfortunatelly:) ).
On the other hand, 100-200 msec is way too long for nginx to
return a cached response.
If you assume the response is cached by nginx somehow, simpliest
test is to switch off php-fpm and check if you are still able to
request a resource.
Maxim Dounin
http://nginx.org/en/donation.html
From mdounin at mdounin.ru
1 16:51:19 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Mon, 1 Jul :19 +0400
Subject: How does FastCGI work under the covers?
In-Reply-To:
References:
Message-ID:
On Mon, Jul 01, 2013 at 11:57:21AM -0400, kgk wrote:
> Hello Maxim,
> Thank you so much for answering my previous questions!
Now I have a few
Will Nginx provide a FastCGI request only when it is 100% complete,
> i.e., the browser has provided every necessary byte?
Will Nginx always accept 100% of a FastCGI response and hold it inside
> internal buffers (or on disk), and not wait for the client (= web browser)?
Depends on configuration, see http://nginx.org/r/fastcgi_max_temp_file_size.
Maxim Dounin
http://nginx.org/en/donation.html
From mdounin at mdounin.ru
1 17:08:24 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Mon, 1 Jul :24 +0400
Subject: GPG error on Nginx repository - NO_PUBKEY
In-Reply-To:
References:
Message-ID:
On Mon, Jul 01, 2013 at 07:29:20PM +0400, Sergey Budnevitch wrote:
Jun2013, at 21:09 , B.R.
> > We've added short explanation with links to gpg docs about how
> > and why pgp signatures should be checked:
> > http://nginx.org/en/linux_packages.html#signatures
> > ?The link to Dewinter's website is broken.
> > Maybe would you like to replace it with http://www.gnupg.org/documentation/howtos.en.html??
> Unfortunately link to gpg minihowto on http://www.gnupg.org/documentation/howtos.en.html also
> points .
At least some translations seems to be on www.gnupg.org itself,
and there are other links as well, so it probably worth the
Maxim Dounin
http://nginx.org/en/donation.html
From nginx
1 21:18:47 2013
From: nginx
(Jonathan Vanasco)
Date: Mon, 1 Jul :47 -0400
Subject: adding query string to redirect ?
Message-ID:
we'd like to add onto the query string an identifier of the nginx server
something like:
return 301 https://$host$request_uri?source=server1 ;
the problem is that we can't figure out how to make this work correctly when the url already contains query strings.
return 301 https://$host$request_uri?source=server1 ;
out /foo.bar?source=server1
/foo.bar?a=1
out /foo.bar?a=1?source=server1
How can we get this?
out /foo.bar?source=server1
/foo.bar?a=1
out /foo.bar?a=1&source=server1
-------------- next part --------------
An HTML attachment was scrubbed...
From appa at perusio.net
1 21:53:46 2013
From: appa at perusio.net (=?ISO-8859-1?Q?Ant=F3nio_P=2E_P=2E_Almeida?=)
Date: Mon, 1 Jul :46 +0200
Subject: adding query string to redirect ?
In-Reply-To:
References:
Message-ID:
At the location/server level try:
if ($is_args) {
return 301 https://$host$request_uri&source=server1;
## Goes here if the above is not chosen.
return 301 https://$host$uri?source=server1 ;
On Mon, Jul 1, 2013 at 11:18 PM, Jonathan Vanasco
> we'd like to add onto the query string an identifier of the nginx server
> something like:
> return 301 https://$host$request_uri?source=server1 ;
> the problem is that we can't figure out how to make this work correctly
> when the url already contains query strings.
> Example:
> return 301 https://$host$request_uri?source=server1 ;
out /foo.bar?source=server1
/foo.bar?a=1
out /foo.bar?a=1?source=server1
> How can we get this?
out /foo.bar?source=server1
/foo.bar?a=1
out /foo.bar?a=1&source=server1
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
From francis at daoine.org
1 21:56:29 2013
From: francis at daoine.org (Francis Daly)
Date: Mon, 1 Jul :29 +0100
Subject: adding query string to redirect ?
In-Reply-To:
References:
Message-ID:
On Mon, Jul 01, 2013 at 05:18:47PM -0400, Jonathan Vanasco wrote:
> the problem is that we can't figure out how to make this work correctly when the url already contains query strings.
If the format difference between $request_uri and $uri is not important
to you in this case, and if the order of the arguments is not important,
then replacing
$request_uri
$uri?source=server1&$args
might be enough.
See http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
for what the different variables mean.
If those conditions don't hold, then you may need to set your extra bit
to start with ? or & depending on the existence of $args or of $is_args,
which you could do in a map.
Francis Daly
francis at daoine.org
From ben at indietorrent.org
2 00:28:46 2013
From: ben at indietorrent.org (Ben Johnson)
Date: Mon, 01 Jul :46 -0400
Subject: What is the purpose of this "location {}" block?
Message-ID:
I'm using ISPConfig3 and the default nginx vhost configuration template
includes the following:
location ~ \.php$ {
try_files /dcc5f1e3ada555c6142e42.htm @
location @php {
try_files $uri =404;
include /etc/nginx/fastcgi_
fastcgi_pass unix:/var/lib/php5-fpm/web2.
fastcgi_index index.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_intercept_
What is the point of the first location block? Wouldn't the end-result
be exactly the same if the content of the second block were to be moved
into the first block, and the second block eliminated? For example:
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_
fastcgi_pass unix:/var/lib/php5-fpm/web2.
fastcgi_index index.
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_intercept_
Everything "works" I'm simply curious if there is some
non-obvious reason for this "try_files trick" with a file that will
never exist (that HTML file doesn't exist and seems to have a
randomly-generated name -- presumably to ensure that it will *never* exist).
Perhaps this file is created in "Maintenance Mode", thereby causing all
requests to be redirected to the maintenance message page?
-------------- next part --------------
An HTML attachment was scrubbed...
From nginx-forum at nginx.us
2 03:15:59 2013
From: nginx-forum at nginx.us (ferguson)
Date: Mon, 01 Jul :59 -0400
Subject: buy beautiful oil paintings at low price
Message-ID:
Two works by British professional Francis Breads, such as the first painting
he ever promoted, have fetched more than ?21m at a London, uk, uk community
public auction, according to the BBC. Go III, which promoted for ?150 at
Bacon?s first individual show 54 years ago, was bought for ?10.4m by an
America individual choice. It had been estimated to provide for between ?5m
and ?7m.A 1966 triptych icon of Isabel Rawsthorne, Bacon?s friend, muse and
fan, went for ?11.3m. Breads and Rawsthorne became acquainted during
preparations for their first individual shows at London?s Hanover Selection
___________________________________
buy cheap oil paintings at www.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,467#msg-240467
From nginx-forum at nginx.us
2 05:26:40 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Tue, 02 Jul :40 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Ben Johnson Wrote:
> Are you using some type of opcode-caching software, e.g. APC,
> memcached,
> etc.? If you're convinced that PHP is doing the caching, I would
> any opcode-caching software first.
Yes, initially I use APC, but I switch it off, and problem still exist.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,470#msg-240470
From nginx-forum at nginx.us
2 05:45:04 2013
From: nginx-forum at nginx.us (ferguson)
Date: Tue, 02 Jul :04 -0400
Subject: buy cheap lights
Message-ID:
[url=/led-lights]LED Lights[/url] which are an
inseparable part of the globe's big places are now placed around Sukhbaatar
Rectangle. The formal wedding to convert on the light was organised at the
square at 10 pm on July 22. The work was requested by Sentino, a value
included supplier of Philips Lighting style products for Mongolia. In the
first level, the region of Sukhbaatar Rectangle, Sukhbaatar Sculpture, Govt
Structure, [url=/wall-lights]Wall
Lights[/url]Ulaanbaatar Town Governor?s Office, State Educational Cinema of
Safari and Dancing, Main Social Structure (CCP), and Mongolian Kid's
Structure are all designed by these LED lights.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,471#msg-240471
From nginx-forum at nginx.us
2 05:46:32 2013
From: nginx-forum at nginx.us (ferguson)
Date: Tue, 02 Jul :32 -0400
Subject: beautiful lights for sale
Message-ID:
One of the more uncommon Verner Panton reissues of delayed is the VerPan
Nineteen seventies Spion walls or Ceiling Light, although it's perfect for
anyone looking for something unique and area age for a space. Not that it
comes cheap - this is showpiece lighting with a cost to coordinate. It's
also a hemispherical metallised colour which repairs straight to the walls
or roof. When lighted, it gives off a strange red shine, the type of shine
that would have really set off a hipster's pad returning in 1971.
_________________________
buy cheap lights at
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,472#msg-240472
From nginx-forum at nginx.us
2 06:08:52 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Tue, 02 Jul :52 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Maxim Dounin Wrote:
> On the other hand, 100-200 msec is way too long for nginx to
> return a cached response.
> If you assume the response is cached by nginx somehow, simpliest
> test is to switch off php-fpm and check if you are still able to
> request a resource.
Thanks for idea! I change a location path in template named "php" from
"location ~ \.php$" to "location ~ \.pZp$" (just for excluding *.php
processing), restart nginx, and server returned a just content (source) of
my index.php file. Then I revert location changes back to \.php, restart
nginx, make request, and server return fast response of correct page again
(0.01 sec with wget, and 60 msec with httperf).
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,474#msg-240474
From nginx-forum at nginx.us
2 09:56:50 2013
From: nginx-forum at nginx.us (hawkins)
Date: Tue, 02 Jul :50 -0400
Subject: Connection reset by peer and other problems
Message-ID:
I'm getting a lot of errors on logs right now and we've already tried
everything to solve the problem without success.
Everything was running just fine until last week.
We use nginx and php-fpm.
nginx version: nginx/1.2.0
The errors that we getting are from random pages and random domains this is
not specific.
Here is some errors from the logs:
[error] 26002#0: *8882 readv() failed (104: Connection reset by peer) while
reading upstream, client: XX.XXX.XX.XXX, server: www.DOMAINX.*, request:
"GET / HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php5-fpm/site_live.sock:", host: "DOMAINX.de",
"http://www.google.de/url?sa=t&rct=j&q=DOMAINX&source=web&cd=1&sqi=2&ved=0CDsQFjAA&url=https%3A%2F%2FDOMAINX.de%2F&ei=EaDSUd7UK6K84ASlu4DABA&usg=AFQjCNEd-czvmCp5Jji3kkpWZ1MtMdhpMA&bvm=bv.,d.bGE"
[error] 26002#0: *8879 recv() failed (104: Connection reset by peer) while
reading response header from upstream, client: XX.XX.X.XX, server:
www.DOMAINX.*, request: "GET /files/2013/06/Twitter1.png HTTP/1.1",
upstream: "fastcgi://unix:/var/run/php5-fpm/site_live.sock:", host:
"DOMAINX.nl"
[error] 26016#0: *6433 FastCGI sent in stderr: "Primary script unknown"
while reading response header from upstream, client: 80.153.156.134, server:
www.DOMAINX.*, request: "GET
/bezgotowkowo/conversion.php?campaignID=11759&productID=17653&conversionType=sale&descrMerchant=&descrAffiliate=&gtmcb=
HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/site_live.sock:",
host: "DOMAINX.pl", referrer: "https://DOMAINX.at/order-skip"
And here is is our nginx configs:
----------------------------------------------
server_name www.DOMAINX.th DOMAINX.th www.DOMAINX.se DOMAINX.se
www.DOMAINX.be DOMAINX.
rewrite ^ $scheme://DOMAINX.de$request_uri?;
rewrite ^ $scheme://$request_uri?;
access_log
/site/logs/live/nginx/landing.access.
/site/logs/live/nginx/landing.error.
/site/www/htdocs/landing.live/public/;
index.html index.
if ($http_x_forwarded_protocol !~* 'https') {
return 301 https://$host$request_
error_page 404 /
rewrite ^/redirect $scheme://$
location ~ \.php$ {
fastcgi_pass
unix:/var/run/php5-fpm/site_live.
fastcgi_index
fastcgi_param
"max_input_time=1200\n
memory_limit=512M\n post_max_size=128M\n upload_max_filesize=128M\n
newrelic.enabled=1\n newrelic.\n
newrelic.framework=zend\n error_log=/site/logs/live/nginx/site.error.log";
fastcgi_param
SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_param
APPLICATION_ENV
fastcgi_param
server_name m.DOMAINX.*;
access_log
/site/logs/live/nginx/mobile.access.
/site/logs/live/nginx/mobile.error.
/site/www/htdocs/mobile.live/public/;
index.html index.
location ~ \.php$ {
fastcgi_pass
unix:/var/run/php5-fpm/site_live.
fastcgi_index
fastcgi_param
"max_input_time=1200\n
memory_limit=512M\n post_max_size=128M\n upload_max_filesize=128M\n
newrelic.enabled=1\n newrelic.appname=mobile-live\n
newrelic.framework=zend\n error_log=/site/logs/live/nginx/site.error.log";
fastcgi_param
SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_param
APPLICATION_ENV
fastcgi_param
error_page
401 /error/401.
error_page
403 /error/403.
error_page
404 /error/404.
error_page
500 502 503 504 /error/50x.
location /error {
root /var/www/default/;
access_log
/data/site/logs/live/nginx/landing.developer.access.
/data/site/logs/live/nginx/landing.developer.error.
index.html index.
location ~ \.php$ {
fastcgi_pass
unix:/var/run/php5-fpm/developer.
fastcgi_index
fastcgi_param
"max_input_time=1200\n
memory_limit=512M\n post_max_size=128M\n upload_max_filesize=128M\n
newrelic.enabled=1\n newrelic.appname=developer\n
error_log=/data/site/logs/live/developer.error.log";
fastcgi_param
SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_param
APPLICATION_ENV
fastcgi_param
error_page
401 /error/401.
error_page
403 /error/403.
error_page
404 /error/404.
error_page
500 502 503 504 /error/50x.
location /error {
root /var/www/default/;
95 default_
server_name www.DOMAINX.* DOMAINX.* site.DOMAINX.*;
access_log
/site/logs/live/nginx/site.access.
/site/logs/live/nginx/site.error.
client_max_body_size
client_header_timeout 1200;
client_body_timeout
send_timeout
keepalive_timeout
set $thttps $
set $tscheme $
if ($http_x_forwarded_protocol = https) {
set $tscheme "https";
if ($http_x_forwarded_protocol = HTTPS) {
set $tscheme "https";
/site/www/htdocs/site.live/site/public/;
$uri $uri/ /index.php?$
location ^~ /files/ {
expires 864000;
fastcgi_pass
unix:/var/run/php5-fpm/site_live.
fastcgi_index
fastcgi_connect_timeout 1200;
fastcgi_send_timeout
fastcgi_read_timeout
fastcgi_param
"max_input_time=1200\n
memory_limit=512M\n post_max_size=128M\n upload_max_filesize=128M\n
newrelic.enabled=1\n newrelic.appname=site-live\n newrelic.framework=zend\n
error_log=/site/logs/live/nginx/site.error.log";
fastcgi_param
SCRIPT_FILENAME
/site/www/htdocs/site.live/site/public/index.php$
fastcgi_param
APPLICATION_ENV
fastcgi_param
# allow clients to cache served resources
fastcgi_param
PHP_ADMIN_VALUE "session.cache_limiter = public";
location ~ \.php$ {
fastcgi_pass
unix:/var/run/php5-fpm/site_live.
fastcgi_index
fastcgi_connect_timeout 1200;
fastcgi_send_timeout
fastcgi_read_timeout
fastcgi_param
"max_input_time=1200\n
memory_limit=512M\n post_max_size=128M\n upload_max_filesize=128M\n
newrelic.enabled=1\n newrelic.appname=site-live\n newrelic.framework=zend\n
error_log=/site/logs/live/nginx/site.error.log";
fastcgi_param
SCRIPT_FILENAME $document_root$fastcgi_script_
fastcgi_param
APPLICATION_ENV
fastcgi_param
# emulate 'session.cache_limiter = nocache' setting in "php.ini":
fastcgi_param
PHP_ADMIN_VALUE "session.cache_limiter = nocache";
error_page
401 /error/401.
error_page
403 /error/403.
error_page
404 /error/404.
error_page
500 502 503 504 /error/50x.
location /error {
root /var/www/default/;
location /rev.txt {
if ($host ~* "DOMAINX\.(.*)") {
set $tld $1;
if ($host ~* "^www\.DOMAINX\.(.*)") {
if ($host ~* "(zenpay|evopay)\.(.*)") {
set $tld $2;
rewrite ^ $scheme://DOMAINX.$tld$request_uri?
if ($request_uri ~* rev.txt) {
if ($thttps != "on") {
if ($redirect = on) {
rewrite ^ https://DOMAINX.$tld$request_uri?
if (-f /var/deploy/live.maintenance.lock) {
rewrite ^(.*)$ /maintenance.
Thanks for your help.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,477#msg-240477
From mdounin at mdounin.ru
2 10:12:06 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Tue, 2 Jul :06 +0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On Tue, Jul 02, 2013 at 02:08:52AM -0400, imanenkov wrote:
> Maxim Dounin Wrote:
> > On the other hand, 100-200 msec is way too long for nginx to
> > return a cached response.
> > If you assume the response is cached by nginx somehow, simpliest
> > test is to switch off php-fpm and check if you are still able to
> > request a resource.
> Thanks for idea! I change a location path in template named "php" from
> "location ~ \.php$" to "location ~ \.pZp$" (just for excluding *.php
> processing), restart nginx, and server returned a just content (source) of
> my index.php file. Then I revert location changes back to \.php, restart
> nginx, make request, and server return fast response of correct page again
> (0.01 sec with wget, and 60 msec with httperf).
Unfortunately, all the tests you did actually prove nothing.
You've been told to switch off php-fpm, not to change nginx
configuration.
If you want to change nginx configuration - just add
$upstream_cache_status variable to a log, it will show if a
response was from nginx cache (HIT) or was requested from a
Other upstream-related variables may be interesting too, in
particular $upstream_response_time.
See here for more:
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables
Maxim Dounin
http://nginx.org/en/donation.html
From nginx-forum at nginx.us
2 11:49:56 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Tue, 02 Jul :56 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Maxim Dounin Wrote:
-------------------------------------------------------
> Unfortunately, all the tests you did actually prove nothing.
> You've been told to switch off php-fpm, not to change nginx
> configuration.
Do you mean stopping php-fpm with "/etc/init.d/php5-fpm stop" command? In
this case I receive a "error 502 bad gateway" error.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,481#msg-240481
From mdounin at mdounin.ru
2 12:27:51 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Tue, 2 Jul :51 +0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On Tue, Jul 02, 2013 at 07:49:56AM -0400, imanenkov wrote:
> Maxim Dounin Wrote:
> -------------------------------------------------------
> > Unfortunately, all the tests you did actually prove nothing.
> > You've been told to switch off php-fpm, not to change nginx
> > configuration.
> Do you mean stopping php-fpm with "/etc/init.d/php5-fpm stop" command?
> In this case I receive a "error 502 bad gateway" error.
This proves that the response is _not_ cached by nginx, but it's
got from php-fpm instead.
As already suggested early, you have to
look into your php code.
Maxim Dounin
http://nginx.org/en/donation.html
From nginx-forum at nginx.us
2 12:37:05 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Tue, 02 Jul :05 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Maxim Dounin Wrote:
> If you want to change nginx configuration - just add
> $upstream_cache_status variable to a log, it will show if a
> response was from nginx cache (HIT) or was requested from a
> backend.
> Other upstream-related variables may be interesting too, in
> particular $upstream_response_time.
See here for more:
I add new log_format in /etc/nginx/nginx.conf:
log_format main '$remote_addr - $remore_user, $upstream_cache_status :
$upstream_response_time'
and assign this formatter to access.log.
On several times running on "caches/fast" site output is:
192.168.111.254 - -, - : 0.090
192.168.111.254 - -, - : 0.044
192.168.111.254 - -, - : 0.054
192.168.111.254 - -, - : 0.057
192.168.111.254 - -, - : 0.047
192.168.111.254 - -, - : 0.049
192.168.111.254 - -, - : 0.053
wait some time (~2 mins), run again, and another string:
192.168.111.254 - -, - : 23.998
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,485#msg-240485
From mdounin at mdounin.ru
2 12:56:42 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Tue, 2 Jul :42 +0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
On Tue, Jul 02, 2013 at 08:37:05AM -0400, imanenkov wrote:
> Maxim Dounin Wrote:
> > If you want to change nginx configuration - just add
> > $upstream_cache_status variable to a log, it will show if a
> > response was from nginx cache (HIT) or was requested from a
> > backend.
> > Other upstream-related variables may be interesting too, in
> > particular $upstream_response_time.
See here for more:
> I add new log_format in /etc/nginx/nginx.conf:
> log_format main '$remote_addr - $remore_user, $upstream_cache_status :
> $upstream_response_time'
> and assign this formatter to access.log.
> On several times running on "caches/fast" site output is:
> 192.168.111.254 - -, - : 0.090
> 192.168.111.254 - -, - : 0.044
> 192.168.111.254 - -, - : 0.054
> 192.168.111.254 - -, - : 0.057
> 192.168.111.254 - -, - : 0.047
> 192.168.111.254 - -, - : 0.049
> 192.168.111.254 - -, - : 0.053
> wait some time (~2 mins), run again, and another string:
> 192.168.111.254 - -, - : 23.998
And this again proves that nginx doesn't cache anything but passes
requests to php-fpm.
As previously suggested, you have to look
into your php code.
Maxim Dounin
http://nginx.org/en/donation.html
From akunz at wishmedia.de
2 13:07:19 2013
From: akunz at wishmedia.de (Alexander Kunz)
Date: Tue, 02 Jul :19 +0200
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Am 02.07., schrieb imanenkov:
> Maxim Dounin Wrote:
>> If you want to change nginx configuration - just add
>> $upstream_cache_status variable to a log, it will show if a
>> response was from nginx cache (HIT) or was requested from a
>> backend.
>> Other upstream-related variables may be interesting too, in
>> particular $upstream_response_time.
See here for more:
> I add new log_format in /etc/nginx/nginx.conf:
> log_format main '$remote_addr - $remore_user, $upstream_cache_status :
> $upstream_response_time'
> and assign this formatter to access.log.
> On several times running on "caches/fast" site output is:
> 192.168.111.254 - -, - : 0.090
> 192.168.111.254 - -, - : 0.044
> 192.168.111.254 - -, - : 0.054
> 192.168.111.254 - -, - : 0.057
> 192.168.111.254 - -, - : 0.047
> 192.168.111.254 - -, - : 0.049
> 192.168.111.254 - -, - : 0.053
> wait some time (~2 mins), run again, and another string:
> 192.168.111.254 - -, - : 23.998
do you use a PHP framework? Most frameworks can cache also. What happens
if you request the page with a unique parameter which is not used by
PHP? Somethink like a random value at the end of your url
test.php?random=xxxxx
What happens on your page/script generally? 24 seconds is a long time.
Are you querying a database? Or filesystem operations? Perhaps it can
help you commenting out step by step in your PHP page/script.
What kind of sotware do you use for this load test? Is this
"192.168.111.254" your localhost? Or is it possible that there is a
proxy between your test server and load generator which is not bypassed?
It's not a nginx caching result.
Kind regrads
From contact
2 13:08:47 2013
From: contact
(Jonathan Matthews)
Date: Tue, 2 Jul :47 +0100
Subject: What is the purpose of this "location {}" block?
In-Reply-To:
References:
Message-ID:
A maint mode switch sounds probable.
Jonathan Matthews
Oxford, London, UK
/contact.html
From mdounin at mdounin.ru
2 13:34:21 2013
From: mdounin at mdounin.ru (Maxim Dounin)
Date: Tue, 2 Jul :21 +0400
Subject: nginx-1.5.2
Message-ID:
Changes with nginx 1.5.2
02 Jul 2013
*) Feature: now several "error_log" directives can be used.
*) Bugfix: the $r->header_in() embedded perl method did not return value
of the "Cookie" and "X-Forwarded-For"
had appeared in 1.3.14.
*) Bugfix: in the ngx_http_spdy_module.
Thanks to Jim Radford.
*) Bugfix: nginx could not be built on Linux with x32 ABI.
Thanks to Serguei Ivantsov.
Maxim Dounin
http://nginx.org/en/donation.html
From nginx-forum at nginx.us
2 13:46:13 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Tue, 02 Jul :13 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Alexander Kunz Wrote:
-------------------------------------------------------
> do you use a PHP framework? Most frameworks can cache also.
Yes, site based on Drupal 7. I trying to switch off drupal cache, all the
> if you request the page with a unique parameter which is not used by
> PHP? Somethink like a random value at the end of your url
> test.php?random=xxxxx
When I add a new parameter (http://site/?qqq), page generate long time. When
a request a page with the same parameter again, page return fast. When I
change parameter again, page generate long time again.
> What happens on your page/script generally? 24 seconds is a long time.
This is some sort of information portal, during page render scripts make
about 50-75 requests to db.
> Are you querying a database?
Yes, mysql 5 on anotner VM (in the proxmox virtual local network).
>Or filesystem operations?
No, filesystem is not using (during start page generation, which I use for
this tests).
>Perhaps it can
> help you commenting out step by step in your PHP page/script.
> What kind of sotware do you use for this load test?
I run tests via httperf (and now for single requests trying simple wget).
All machines is VM under proxmox with 512mb RAM and 1 virtual core, except
nginx+php server - there is 1 Gb.
Dictinct VMs for nginx+php, db, and machine for test running. Also there is
one proxy/load balancer machine, but now balancer have 1 node in config and
redirect all requests to nginx (proxy using nginx too). I trying to exclude
proxy totally (with direct access to nginx+php server - all the same).
> "192.168.111.254" your localhost? Or is it possible that there is a
> proxy between your test server and load generator which is not
> bypassed?
This is VM - proxy, but I trying to exclude it and make direct requests to
nginx+php machine, this has no effect.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,496#msg-240496
From akunz at wishmedia.de
2 15:05:51 2013
From: akunz at wishmedia.de (Alexander Kunz)
Date: Tue, 02 Jul :51 +0200
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Am 02.07., schrieb imanenkov:
> Alexander Kunz Wrote:
> -------------------------------------------------------
>> do you use a PHP framework? Most frameworks can cache also.
> Yes, site based on Drupal 7. I trying to switch off drupal cache, all the
i am no drupal user/developer but if i google about drupal cache it
sounds, there is not only one cache, and it sounds like its not only one
click to disable it complete. Perhaps you can find some informations
about the cache here:
https://drupal.org/node/797346
or it is a good point so start. If you exclude the frontend proxy, for
me it sounds like a cache "problem" in drupal. Perhaps you can post a
question in a drupal developer mailinglist?
good luck,
From nginx-forum at nginx.us
2 15:23:28 2013
From: nginx-forum at nginx.us (crazynuxer)
Date: Tue, 02 Jul :28 -0400
Subject: Nginx returns HTTP 200 with Content-Length: 0
In-Reply-To:
References:
Message-ID:
Hello all,
I have some problem , I use version nginx/1.2.2 and nginx/1.0.11, should I
upgrade my version first or just compile then send you my debug log
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,499#msg-240499
From nginx-forum at nginx.us
2 21:24:15 2013
From: nginx-forum at nginx.us (Peleke)
Date: Tue, 02 Jul :15 -0400
Subject: Disable open_file_cache for a specific location
Message-ID:
I have set the open_file_cache variable to max=5000
inactive=20s so that it
is enabled globally but now I want to disable all caching for a specific
virtual location on a domain:
- open_file_cache max=5000
inactive=20s;
location ^~ /gallery {
open_file_
Sadly that rule doesn't work because /gallery doesn't exist as a real
folder. It is only a permalink (/%category%/%postname%/) from WordPress. All
subpages (like www.domain.tld/gallery/flickr) should have no cache enabled
because the plugin for those galleries doesn't work with caching.
How can I solve the problem?
Thanks in advance.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,504#msg-240504
From francis at daoine.org
2 21:43:30 2013
From: francis at daoine.org (Francis Daly)
Date: Tue, 2 Jul :30 +0100
Subject: Disable open_file_cache for a specific location
In-Reply-To:
References:
Message-ID:
On Tue, Jul 02, 2013 at 05:24:15PM -0400, Peleke wrote:
> I have set the open_file_cache variable to max=5000
inactive=20s so that it
> is enabled globally but now I want to disable all caching for a specific
> virtual location on a domain:
http://nginx.org/r/open_file_cache describes what open_file_cache does.
That description doesn't seem to match what you seem to indicate you
think it does.
> - open_file_cache max=5000
inactive=20s;
location ^~ /gallery {
open_file_
> Sadly that rule doesn't work because /gallery doesn't exist as a real
Why do you think that it doesn't work?
W wh and what result do you
expect to see?
> It is only a permalink (/%category%/%postname%/) from WordPress. All
> subpages (like www.domain.tld/gallery/flickr) should have no cache enabled
> because the plugin for those galleries doesn't work with caching.
nginx tends not to cache unless you configure it to.
Why do you think nginx is caching something that you do not want it to?
> How can I solve the problem?
I suspect that describing the problem in terms of specific things that
can be observed or tested will be a good start.
Right now, I'm not sure what problem you are reporting.
Francis Daly
francis at daoine.org
From nginx-forum at nginx.us
3 00:16:00 2013
From: nginx-forum at nginx.us (Peleke)
Date: Tue, 02 Jul :00 -0400
Subject: Disable open_file_cache for a specific location
In-Reply-To:
References:
Message-ID:
Sorry, maybe it is only related to the permalink structure which worked with
Apache before server move.
The gallery script adds it own extensions to the address.
You can see it live on www.peleke.de/galerie and then click on one of the
three gallery sources (Flickr, Facebook or Google+).
Can you see what I mean?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,506#msg-240506
From sandeepvreddy
3 04:55:35 2013
From: sandeepvreddy
(Sandeep L)
Date: Wed, 3 Jul :35 +0530
Subject: Nginx upstream servers status
Message-ID:
I am trying to configure nginx with upstream.
We have 3 machines where we run application server and proxy passing all requests from nginx to application serves.
I used following configuration in nginx:
upstream appcluster {
server :8080 max_fails=2 fail_timeout=300s;
server :8080 max_fails=2 fail_timeout=300s;
Now issue is if the request comes to nginx when one server is down
due to unknown reasons its waiting for a long time getting response or
some times its getting connection timeout.
Is there any module in nginx to get upstream servers status and forward requests only working upstream server.
Can someone suggest me right configuration to get response from
appcluster without latency or connection time out whenever a server wont
-------------- next part --------------
An HTML attachment was scrubbed...
From sajan
3 05:05:09 2013
From: sajan
(Sajan Parikh)
Date: Wed, 03 Jul :09 -0500
Subject: Nginx upstream servers status
In-Reply-To:
References:
Message-ID:
Have you looked at the proxy_next_upstream configuration?
http://wiki.nginx.org/NginxHttpProxyModule#proxy_next_upstream
It should do what you want.
Also, depending on yourapplication and traffic, it might also be worth
looking into lowering fail_timeout.
Sajan Parikh
/Owner, Noppix LLC/
p: (563) 726-0371
Noppix LLC Logo
On 07/02/ PM, Sandeep L wrote:
> I am trying to configure nginx with upstream.
> We have 3 machines where we run application server and proxy passing
> all requests from nginx to application serves.
> I used following configuration in nginx:
> *upstream appcluster {*
server :8080 max_fails=2 fail_timeout=300s;*
server :8080 max_fails=2 fail_timeout=300s;*
> Now issue is if the request comes to nginx when one server is down due
> to unknown reasons its waiting for a long time getting response or
> some times its getting connection timeout.
> Is there any module in nginx to get upstream servers status and
> forward requests only working upstream server.
> Can someone suggest me right configuration to get response from
> appcluster without latency or connection time out whenever a server
> wont respond.
> Sandeep.
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsiglogo.png
Type: image/png
Size: 6717 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4473 bytes
Desc: S/MIME Cryptographic Signature
From nginx-forum at nginx.us
3 05:11:20 2013
From: nginx-forum at nginx.us (mex)
Date: Wed, 03 Jul :20 -0400
Subject: Nginx upstream servers status
In-Reply-To:
References:
Message-ID:
you allow 600 seconds to pass until you npotice, that your upstream-server
is not responsible.
... max_fails=2 fail_timeout=300s;
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,515#msg-240515
From sandeepvreddy
3 05:37:24 2013
From: sandeepvreddy
(Sandeep L)
Date: Wed, 3 Jul :24 +0530
Subject: Nginx upstream servers status
In-Reply-To:
References: ,
Message-ID:
@Parikh I tried with
proxy_next_upstream also but facing same issue.
Regarding fail_timeout I used values from 10s to 30s but facing same issue.
I used following configuration, just check and let me know If I am missing any thing.
upstream appcluster {
server :8080 max_fails=2 fail_timeout=10s;
server :8080 max_fails=2 fail_timeout=10s;}
location / {
proxy_pass
proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504
proxy_set_header
Thanks,Sandeep.
> To: nginx at nginx.org
> Subject: Re: Nginx upstream servers status
> From: nginx-forum at nginx.us
> Date: Wed, 3 Jul :20 -0400
> you allow 600 seconds to pass until you npotice, that your upstream-server
> is not responsible.
> ... max_fails=2 fail_timeout=300s;
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,515#msg-240515
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
From sajan
3 05:47:31 2013
From: sajan
(Sajan Parikh)
Date: Wed, 03 Jul :31 -0500
Subject: Nginx upstream servers status
In-Reply-To:
References: ,
Message-ID:
In your proxy_next_upstream, why do you have 'off' enabled.
off --- it forbids the request transfer to the next server.
Remove 'off' from that line.
Sajan Parikh
/Owner, Noppix LLC/
p: (563) 726-0371
Noppix LLC Logo
On 07/03/ AM, Sandeep L wrote:
> @Parikh I tried with
proxy_next_upstream also but facing same issue.
> Regarding fail_timeout I used values from 10s to 30s but facing same
> I used following configuration, just check and let me know If I am
> missing any thing.
> *upstream appcluster {
server :8080 max_fails=2 fail_timeout=10s;
server :8080 max_fails=2 fail_timeout=10s;
> *server {*
listen *;*
location / {*
proxy_pass
proxy_next_upstream error timeout http_404
> http_500 http_502 http_503 http_504*
proxy_set_header
> Sandeep.
> > To: nginx at nginx.org
> > Subject: Re: Nginx upstream servers status
> > From: nginx-forum at nginx.us
> > Date: Wed, 3 Jul :20 -0400
> > you allow 600 seconds to pass until you npotice, that your
> upstream-server
> > is not responsible.
> > ... max_fails=2 fail_timeout=300s;
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,515#msg-240515
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsiglogo.png
Type: image/png
Size: 6717 bytes
Desc: not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4473 bytes
Desc: S/MIME Cryptographic Signature
From sandeepvreddy
3 05:55:32 2013
From: sandeepvreddy
(Sandeep L)
Date: Wed, 3 Jul :32 +0530
Subject: Nginx upstream servers status
In-Reply-To:
References: , ,
Message-ID:
Hi Parikh,
I used following configuration but still its waiting for long time.
server :8080 max_fails=2 fail_timeout=5s;
As you suggested removed off
proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504;
Thanks,Sandeep.
Date: Wed, 3 Jul :31 -0500
From: sajan
To: nginx at nginx.org
Subject: Re: Nginx upstream servers status
In your proxy_next_upstream, why do you
have 'off' enabled.
off ? it forbids the request transfer to the next server.
Remove 'off' from that line.
Sajan Parikh
Owner, Noppix LLC
p: (563) 726-0371
On 07/03/ AM, Sandeep L wrote:
@Parikh I tried with
proxy_next_upstream also but facing same issue.
Regarding fail_timeout I used values
from 10s to 30s but facing same issue.
I used following configuration, just
check and let me know If I am missing any thing.
upstream appcluster {
server :8080
max_fails=2 fail_timeout=10s;
server :8080
max_fails=2 fail_timeout=10s;
location / {
proxy_pass
proxy_next_upstream error
timeout http_404 http_500 http_502 http_503 http_504
proxy_set_header
> To: nginx at nginx.org
> Subject: Re: Nginx upstream servers status
> From: nginx-forum at nginx.us
> Date: Wed, 3 Jul :20 -0400
> you allow 600 seconds to pass until you npotice, that
your upstream-server
> is not responsible.
> ... max_fails=2 fail_timeout=300s;
> Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,515#msg-240515
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsiglogo.png
Type: image/png
Size: 6717 bytes
Desc: not available
From nginx-forum at nginx.us
3 06:04:46 2013
From: nginx-forum at nginx.us (mex)
Date: Wed, 03 Jul :46 -0400
Subject: Nginx upstream servers status
In-Reply-To:
References:
Message-ID:
you are sure, your upstream-servers are not answering on given ports?
http://wiki.nginx.org/HttpUpstreamModule#server
http://wiki.nginx.org/NginxHttpProxyModule#proxy_connect_timeout
http://wiki.nginx.org/NginxHttpProxyModule#proxy_read_timeout
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,521#msg-240521
From sandeepvreddy
3 06:10:48 2013
From: sandeepvreddy
(Sandeep L)
Date: Wed, 3 Jul :48 +0530
Subject: Nginx upstream servers status
In-Reply-To:
References: ,
Message-ID:
I have 2 upstream servers host1 and host2.
host1 is up and running and listening on port 8080host2 is powered off.
When I sent a request to nginx, I received response after 2 minutes. Until 2 minutes the request is waiting.
Thanks,Sandeep.
> To: nginx at nginx.org
> Subject: Re: RE: Nginx upstream servers status
> From: nginx-forum at nginx.us
> Date: Wed, 3 Jul :46 -0400
> you are sure, your upstream-servers are not answering on given ports?
> http://wiki.nginx.org/HttpUpstreamModule#server
> http://wiki.nginx.org/NginxHttpProxyModule#proxy_connect_timeout
> http://wiki.nginx.org/NginxHttpProxyModule#proxy_read_timeout
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,521#msg-240521
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
From nginx-forum at nginx.us
3 06:39:33 2013
From: nginx-forum at nginx.us (mex)
Date: Wed, 03 Jul :33 -0400
Subject: Nginx upstream servers status
In-Reply-To:
References:
Message-ID:
i'd suggest you'll start with low-level-debugging:
- goto host1 and make a tcpdump port 8080 / tail -f against access-logs
- make a request
- check., what happens to that request, e.g. where it "hangs"
you could also, just in case, make a "tcpdump port 808 and host host2" onm
your nginx, just to make sure that nginx is sending the requests to the
right server
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,523#msg-240523
From nginx-forum at nginx.us
3 06:50:29 2013
From: nginx-forum at nginx.us (imanenkov)
Date: Wed, 03 Jul :29 -0400
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
Alexander Kunz Wrote:
> i am no drupal user/developer but if i google about drupal cache it
> sounds, there is not only one cache, and it sounds like its not only
> click to disable it complete. Perhaps you can find some informations
> about the cache here:
> https://drupal.org/node/797346
> or it is a good point so start. If you exclude the frontend proxy, for
> me it sounds like a cache "problem" in drupal. Perhaps you can post a
> question in a drupal developer mailinglist?
Thanks a lot! I trying to disable all drupal caches and clear cache tables,
and all for as needed (every request process "long" time. I could not
believe that drupal cache so fast (in testing environment), so initially I
did not think about this case. My fault(
Thank to all for the right search direction!
Best regards.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,524#msg-240524
From akunz at wishmedia.de
3 06:53:31 2013
From: akunz at wishmedia.de (Alexander Kunz)
Date: Wed, 03 Jul :31 +0200
Subject: Cannot totally switch off caching
In-Reply-To:
References:
Message-ID:
thanks for your feedback and nice to hear its solved.
have a nice day.
Am 03.07., schrieb imanenkov:
> Alexander Kunz Wrote:
>> i am no drupal user/developer but if i google about drupal cache it
>> sounds, there is not only one cache, and it sounds like its not only
>> click to disable it complete. Perhaps you can find some informations
>> about the cache here:
>> https://drupal.org/node/797346
>> or it is a good point so start. If you exclude the frontend proxy, for
>> me it sounds like a cache "problem" in drupal. Perhaps you can post a
>> question in a drupal developer mailinglist?
> Thanks a lot! I trying to disable all drupal caches and clear cache tables,
> and all for as needed (every request process "long" time. I could not
> believe that drupal cache so fast (in testing environment), so initially I
> did not think about this case. My fault(
> Thank to all for the right search direction!
> Best regards.
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,524#msg-240524
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
From francis at daoine.org
3 07:55:09 2013
From: francis at daoine.org (Francis Daly)
Date: Wed, 3 Jul :09 +0100
Subject: Disable open_file_cache for a specific location
In-Reply-To:
References:
Message-ID:
On Tue, Jul 02, 2013 at 08:16:00PM -0400, Peleke wrote:
> Sorry, maybe it is only related to the permalink structure which worked with
> Apache before server move.
C the fact that this is a new nginx deployment which used to be
an apache deployment is probably useful information for when it comes
to fixing the nginx configuration.
> The gallery script adds it own extensions to the address.
> You can see it live on www.peleke.de/galerie and then click on one of the
> three gallery sources (Flickr, Facebook or Google+).
> Can you see what I mean?
I don't see anything there which is obviously cache-related.
I do see the words "Gallery not found!!!".
So: when you type a specific curl command -- such as "curl -i
http://www.peleke.de/galerie/facebook/" -- what response do you get and
what response do you expect?
And what nginx configuration do you use that leads you to get and expect
those things?
Francis Daly
francis at daoine.org
From sandeepvreddy
3 08:59:23 2013
From: sandeepvreddy
(Sandeep L)
Date: Wed, 3 Jul :23 +0530
Subject: Nginx upstream servers status
In-Reply-To:
References: ,
Message-ID:
While looking at logs following message appeared:
[error] 16488#0: *80 upstream timed out (110: Connection timed out) while connecting to upstream, client: IP, server: , request: "GET /assets/images/transparent.png HTTP/1.1", upstream: ":8080/assets/images/transparent.png", host: "hostname", referrer: "http://hostname"
Thanks,Sandeep.
> To: nginx at nginx.org
> Subject: Re: RE: Nginx upstream servers status
> From: nginx-forum at nginx.us
> Date: Wed, 3 Jul :33 -0400
> i'd suggest you'll start with low-level-debugging:
> - goto host1 and make a tcpdump port 8080 / tail -f against access-logs
> - make a request
> - check., what happens to that request, e.g. where it "hangs"
> you could also, just in case, make a "tcpdump port 808 and host host2" onm
> your nginx, just to make sure that nginx is sending the requests to the
> right server
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,523#msg-240523
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
From kworthington
3 13:17:02 2013
From: kworthington
(Kevin Worthington)
Date: Wed, 3 Jul :02 -0400
Subject: nginx-1.5.2
In-Reply-To:
References:
Message-ID:
Hello Nginx users,
Now available: Nginx 1.5.2 for Windows http://goo.gl/SO98Q (32-bit and
64-bit versions)
These versions are to support legacy users who are already using Cygwin
based builds of Nginx. Officially supported native Windows binaries are at
nginx.org.
Announcements are also available via my Twitter stream (
/kworthington), if you prefer to receive updates that way.
Thank you,
Kevin Worthington
kworthington *@* (gmail]
[dot} {com)
/kworthington
On Tue, Jul 2, 2013 at 9:34 AM, Maxim Dounin
> Changes with nginx 1.5.2
*) Feature: now several "error_log" directives can be used.
*) Bugfix: the $r->header_in() embedded perl method did not return
of the "Cookie" and "X-Forwarded-For"
had appeared in 1.3.14.
*) Bugfix: in the ngx_http_spdy_module.
Thanks to Jim Radford.
*) Bugfix: nginx could not be built on Linux with x32 ABI.
Thanks to Serguei Ivantsov.
> Maxim Dounin
> http://nginx.org/en/donation.html
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
From nginx-forum at nginx.us
3 13:45:44 2013
From: nginx-forum at nginx.us (Peleke)
Date: Wed, 03 Jul :44 -0400
Subject: Disable open_file_cache for a specific location
In-Reply-To:
References:
Message-ID:
Try Flickr or Google+ instead, that error message isn't related to the
problem I mentioned, sorry.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,539#msg-240539
From nginx-forum at nginx.us
3 14:19:28 2013
From: nginx-forum at nginx.us (benseb)
Date: Wed, 03 Jul :28 -0400
Subject: SPDY Installed but not working?
Message-ID:
We have installed Nginx on CentOS 6. This is a new install using Nginx 1.4.1
and OpenSSL 1.0.1e
We then confgured our vhosts to use SPDY, however using a few different
tests, it's showing that SPDY is not enabled?
There are no messages in the logs and it restarts fine?
-----------------------
Missing NPN Extension in SSL/TLS Handshake
Sorry, but this server is not including an NPN Entension during the SSL/TLS
handshake. The NPN Extension is an additional part of the SSL/TLS
ServerHello message which allows web servers to tell browsers they support
additional protocols, like SPDY. SSL/TLS servers that don't use send the NPN
Extension cannot use SPDY because they have no way to tell the browser to
use SPDY instead of HTTP.
-------------------
Next Protocol Negotiation No
Please see config below:
[root at lb-3 ~]# nginx -V
nginx version: nginx/1.4.1
built by gcc 4.4.7
(Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx
--sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/subsys/nginx --with-http_ssl_module
--with-http_realip_module --with-http_addition_module
--with-http_xslt_module --with-http_image_filter_module
--with-http_geoip_module --with-http_sub_module --with-http_dav_module
--with-http_flv_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_degradation_module --with-http_stub_status_module
--with-http_perl_module --with-http_mp4_module --with-http_spdy_module
--with-http_gunzip_module --with-mail --with-file-aio --with-mail_ssl_module
--with-ipv6 --with-cc-opt='-O2 -g' --with-cc-opt='-O2 -g'
[root at lb-3 ~]# openssl version
OpenSSL 1.0.1e 11 Feb 2013
[root at lb-3 ~]# which openssl
/usr/bin/openssl
listen 443
spdy_headers_comp 5;
ssl_certificate /etc/nginx/certs/
ssl_certificate_key /etc/nginx/certs/
...snip...
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,545#msg-240545
From luky-37
3 17:24:32 2013
From: luky-37
(Lukas Tribus)
Date: Wed, 3 Jul :32 +0200
Subject: SPDY Installed but not working?
In-Reply-To:
References:
Message-ID:
> Missing NPN Extension in SSL/TLS Handshake
Did you compile openssl on your own?
Can you post the output of "openssl version -a"?
Sounds to me as if OpenSSL was build without TLS extensions.
From calin.don
3 19:54:15 2013
From: calin.don
(Calin Don)
Date: Wed, 3 Jul :15 +0300
Subject: Disable access log escaping
Message-ID:
I'm using a module which sets some data formated as json to a variable. I'm
trying to log this variable using the access log, but the content is
escaped. I'm getting something like {\x22foo\x22:\x22bar\x22} instead of
{'foo':'bar'}.
Is there a way to disable the escaping per access_log or per log_format?
-------------- next part --------------
An HTML attachment was scrubbed...
From mike503
3 20:05:50 2013
From: mike503
(Michael Shadle)
Date: Wed, 3 Jul :50 -0700
Subject: Congrats to nginx - now the most used webserver in the top 1000
Message-ID:
/blog/entry/nginx_just_became_the_most_used_web_server_among_the_top_1000_websites
From francis at daoine.org
3 22:17:52 2013
From: francis at daoine.org (Francis Daly)
Date: Wed, 3 Jul :52 +0100
Subject: Disable open_file_cache for a specific location
In-Reply-To:
References:
Message-ID:
On Wed}

我要回帖

更多关于 100米用多少时间 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信