Re: nginx configuration - sharetronix

2014-11-20 Thread Replace
omg :) i try again (i think) location / { try_files $uri /index.php?$query_string; } and everything work fine. I can't believe not tryed this before :) many, many thanks @Francis Daly Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254533,255019#msg-255019

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
Hi Valentine, Please confirm that keep alive_timeout is a value for inactivity by mentioning it on the nginx.org . Thanks, Jagannath From: "Valentin V. Bartenev" mailto:vb...@nginx.com>> Organization: NGINX, Inc. Reply-To: "nginx@nginx.org" mailto:nginx@nginx.org>> Da

nginx performance with aritificial latency - help?

2014-11-20 Thread Jacob Burkamper
Hello All! I am attempting to do stress testing of a custom proxy server. Basically, the scenario looks somewhat like the following: performance testing software (client) ---> proxy server ---> nginx (server). The nginx server is an Ubuntu 14.04 install. I have done a small amount of reading on

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
It was new learning for me that keep alive_timeout is a time set for inactivity. May be we should add that in the nginx.org wiki page. This will actually relief a lot of people. :) From: "Valentin V. Bartenev" mailto:vb...@nginx.com>> Organization: NGINX, Inc. Reply-To: "nginx@nginx.org

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
Hi, The 2s is the delay between which the requests are fired from the client side on the same connection. Thanks, Jagannath From: "Valentin V. Bartenev" mailto:vb...@nginx.com>> Organization: NGINX, Inc. Reply-To: "nginx@nginx.org" mailto:nginx@nginx.org>> Date: Thursd

Re: How to extract multiple values of a header for logging

2014-11-20 Thread Robert Paprocki
This is possible using if you are able to use the Lua module: http://wiki.nginx.org/HttpLuaModule#ngx.req.get_headers "For multiple instances of request headers ... the value of ngx.req.get_headers()["Foo"] will be a Lua (array) table..." On 11/20/2014 05:19 PM, keeyong wrote: > Thanks Maxim for

Re: How to extract multiple values of a header for logging

2014-11-20 Thread keeyong
Thanks Maxim for the confirmation Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254961,255012#msg-255012 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: too many redirects

2014-11-20 Thread Francis Daly
On Thu, Nov 20, 2014 at 10:07:22PM +0100, JACK LINKERS wrote: You probably already have the answer now, but just in case not... > I completely lost... > I tried everything (of my understanding) with no success. Your original config was: listen on http and https; redirect everything to https.

Re: Rewrite with permanent and last

2014-11-20 Thread Francis Daly
On Thu, Nov 20, 2014 at 02:22:48PM -0800, neubyr wrote: > On Thu, Nov 20, 2014 at 2:15 PM, mex wrote: Hi there, > > nginx has a last flag too: > > > > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite > > Yes, I was trying to use it along with permanent and that doesn't work. M

Re: too many redirects

2014-11-20 Thread Steve Holdoway
Here's a basic example of one of my configs that redirect example.wp.com to https://www.example.wp.com... update and example.wp.com as necessary, and ensure the site is set up as www.example.wp.com as well. It may need the odd tweak to restore to standard use of fastcgi includes, as I've modifie

Re: Rewrite with permanent and last

2014-11-20 Thread B.R.
As what you imply is not stated in the documentation, I would say you are mistaken. If you need help, and as requested sooner, some configuration snippet(s) might be more than helpful... --- *B. R.* On Thu, Nov 20, 2014 at 11:22 PM, neubyr wrote: > > > On Thu, Nov 20, 2014 at 2:15 PM, mex wrot

Re: too many redirects

2014-11-20 Thread B.R.
Maybe start over your configuration, one step at a time, checking everything you do has the desirect effect? Step by step, gently, no pressure. That is the way you learn! Do not give up, if you need specific help people are here to help you :o) As you just realized, copy-pasting 'magic' configurat

Re: Rewrite with permanent and last

2014-11-20 Thread neubyr
On Thu, Nov 20, 2014 at 2:15 PM, mex wrote: > nginx has a last flag too: > > http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite Yes, I was trying to use it along with permanent and that doesn't work. May be 'permanent' implies 'last' as well. - N ___

Re: Rewrite with permanent and last

2014-11-20 Thread mex
nginx has a last flag too: http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254969,255005#msg-255005 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/lis

Re: too many redirects

2014-11-20 Thread JACK LINKERS
I completely lost... I tried everything (of my understanding) with no success. I didn't know you could include a condition with if and came across sites like : http://publications.jbfavre.org/web/nginx-vhosts-automatiques-avec-SSL-et-authentification.fr This is way beyond my skills... I didn't mana

Use of worker_cpu_affinity in hyper-threading context

2014-11-20 Thread Alex
Hi, I have one E3-1240 v3 CPU here, which has 4 cores with hyper-threading enabled. Currently I have the following setup in nginx.conf: worker_processes 4; worker_cpu_affinity 1010 0101 1010 0101; In other words, I bind each of the four workers to two (virtual) cores (similar

Re: Incomplete HTTP request body sent to upstream

2014-11-20 Thread Maxim Dounin
Hello! On Thu, Nov 20, 2014 at 05:34:58PM +0100, Roman Borschel wrote: > Hi Maxim, > > thanks for the quick answer and the pointer to the earlier discussion. May > I ask if there is there a specific reason for the past discussion not > leading to the issue getting resolved, i.e. is this bug on t

Re: Using both keepalive requests and timeout

2014-11-20 Thread Valentin V. Bartenev
On Thursday 20 November 2014 20:40:30 Das, Jagannath wrote: > I tried with 10s, 30s, 40s . But you have set 2s timeout between requests in httperf, so how do you expect it to work? It's a timeout for inactive keep-alive connection. If you set keepalive_timeout 10s; then a connection will be clos

Re: Incomplete HTTP request body sent to upstream

2014-11-20 Thread Roman Borschel
Hi Maxim, thanks for the quick answer and the pointer to the earlier discussion. May I ask if there is there a specific reason for the past discussion not leading to the issue getting resolved, i.e. is this bug on the roadmap somewhere or should I file an issue? - Roman > On Wed, Nov 19, 2014 a

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
I tried with 10s, 30s, 40s . From: "Valentin V. Bartenev" mailto:vb...@nginx.com>> Organization: NGINX, Inc. Reply-To: "nginx@nginx.org" mailto:nginx@nginx.org>> Date: Thursday, November 20, 2014 at 5:56 PM To: "nginx@nginx.org" mailto:nginx@nginx.

Re: How to extract multiple values of a header for logging

2014-11-20 Thread Maxim Dounin
Hello! On Wed, Nov 19, 2014 at 03:09:16PM -0500, keeyong wrote: > I have a custom header in http response and it can appear more than once. > Let's say it is called x-extra. > > In my nginx configuration, I want to extract all of its values and log them > together but I found it is always extra

Re: Using both keepalive requests and timeout

2014-11-20 Thread Valentin V. Bartenev
On Thursday 20 November 2014 16:37:31 Das, Jagannath wrote: > httperf --server localhost --hog --method POST --wsess=1,102,2 --print-reply > --print-request > And what keepalive_timeout you have specified? One second? wbr, Valentin V. Bartenev ___

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
httperf --server localhost --hog --method POST --wsess=1,102,2 --print-reply --print-request From: "Valentin V. Bartenev" mailto:vb...@nginx.com>> Organization: Nginx, Inc. Reply-To: "nginx@nginx.org" mailto:nginx@nginx.org>> Date: Thursday, November 20, 2014 at 2:55 PM T

Re: too many redirects

2014-11-20 Thread JACK LINKERS
Hi guys, Thanks for your fast reply and input. I didn't think of wordpress at all. I'll try some tuning and keep you posted. Thanks again Le 20 nov. 2014 09:52, "B.R." a écrit : > On Thursday, November 20, 2014, JACK LINKERS >> wrote: >> >>> rewrite ^ https://$server_name$request_uri? p

Re: Using both keepalive requests and timeout

2014-11-20 Thread Valentin V. Bartenev
On Thursday 20 November 2014 14:43:46 Das, Jagannath wrote: > Hi, > I tried posting data to nginx running on the same host as that of the > client(httperf) with keep alive_timeout set to a non-zero value and keep > alive_requests set to a non-zero value. I observed that, the server was > closi

Re: Using both keepalive requests and timeout

2014-11-20 Thread Das, Jagannath
Hi, I tried posting data to nginx running on the same host as that of the client(httperf) with keep alive_timeout set to a non-zero value and keep alive_requests set to a non-zero value. I observed that, the server was closing the connection only when the number of requests equalled the value

Re: too many redirects

2014-11-20 Thread B.R.
> > On Thursday, November 20, 2014, JACK LINKERS > wrote: > >> rewrite ^ https://$server_name$request_uri? permanent; >> > ​This looks highly suscpicious to me: unconditional rewrite of any request? Try to either: - match the regex against HTTP requests - enclose a 'return 301 [...]' in an

Re: Using both keepalive requests and timeout

2014-11-20 Thread Valentin V. Bartenev
On Thursday 20 November 2014 10:42:03 Das, Jagannath wrote: > Hi All, >I have a query, I tried setting keep alive_timeout to a non-zero value >and found it not working correctly. >Are there any related parameters for this? > What do you mean by not working correctly? What's the probl

Re: too many redirects

2014-11-20 Thread NitrouZ
It's looks like wordpress problem. Not your conf. Did you figure it out the problem if set your wordpress into https mode? On Thursday, November 20, 2014, JACK LINKERS wrote: > Hello, > > I try to force SSL redirect on my website, but I'm getting a > ERR_TOO_MANY_REDIRECTS. > > I can't figure wh

too many redirects

2014-11-20 Thread JACK LINKERS
Hello, I try to force SSL redirect on my website, but I'm getting a ERR_TOO_MANY_REDIRECTS. I can't figure what's wrong, here is my vhost .conf file : server { listen *:80; listen *:443 ssl; ssl on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /var/www/clients/client2/web1/ssl/d