Re: Request Compression

2016-08-28 Thread Max Clements
When you say "request compression" I guess you referring to entity compression (for example in Post Requests). Nginx ngx_http_gzip_module does NOT support request entity decompression - but you can do this in LUA. An example on how to do this is here: http://www.pataliebre.net/howto-make-nginx-dec

Re: Request Compression

2016-08-28 Thread serendipity30
Anyone has used this? Is gzip_static used for request compression? Thanks Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269174,269260#msg-269260 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Location Alias not working

2016-08-28 Thread Francis Daly
On Sun, Aug 28, 2016 at 06:59:45PM +0200, İhsan Doğan wrote: > On Saturday, 27 Aug 2016 21:50 +0100, Francis Daly wrote: Hi there, Edho Arief is correct; what you see is due to the "index" directive and the subsequent "php" subrequest. > > What specific test request do you make? > > GET /foo/ w

Re: multi server addresses appear in variable $upstream_addr which was not supposed to

2016-08-28 Thread B.R.
The docs say multiple servers might be contacted: $upstream_addr Upstream groups are used to tolerate errors on some responses (and replay the request somewhere else): upstream

Re: Location Alias not working

2016-08-28 Thread Edho Arief
Hi, On Mon, Aug 29, 2016, at 01:59, İhsan Doğan wrote: > Hi, > > On Saturday, 27 Aug 2016 21:50 +0100, Francis Daly wrote: > > > > I've defined a location alias in my nginx.conf: > > > > > location/foo/ { > > > alias /var/www/foo/; > > > } > > > > > Even the direc

disable .php files uploads using php (php-fpm)

2016-08-28 Thread Christos Chatzaras
Is any way to get the body of a php post upload to match using regex the filename of a php upload? I want to block file uploads with .php extension. I found that I can do it with nasxi but I want to see if I can avoid it. ___ nginx mailing list nginx@ng

Re: Location Alias not working

2016-08-28 Thread İhsan Doğan
Hi, On Saturday, 27 Aug 2016 21:50 +0100, Francis Daly wrote: > > I've defined a location alias in my nginx.conf: > > > location/foo/ { > > alias /var/www/foo/; > > } > > > Even the directory /var/www/foo exists, Nginx is returns a 404. As I > > understand, t

multi server addresses appear in variable $upstream_addr which was not supposed to

2016-08-28 Thread 褚夫元
Hello! It is pretty strange that there was two upstream servers in $upstream_addr. It seems two servers received request and both had a respose. Client received the response which took less duration time, I guess. Am I right ? What is stranger is the name of upstream server group appe

Re: How to disable request pipelining on nginx upstream

2016-08-28 Thread Maxim Dounin
Hello! On Sun, Aug 28, 2016 at 08:22:08AM -0400, hkahlouche wrote: > Does anyone know a way to disable HTTP request pipelining on a same upstream > backend connection? Pipelining is not used by nginx, there is no need to disable anything. -- Maxim Dounin http://nginx.org/ __

How to disable request pipelining on nginx upstream

2016-08-28 Thread hkahlouche
Hi, Does anyone know a way to disable HTTP request pipelining on a same upstream backend connection? Let's say we have the below upstream backend that is configured with keepalive and no connection close: upstream http_backend { server 127.0.0.1:8080; keepalive 10;

Re: Nginx real_ip module doesn't work in some conditions

2016-08-28 Thread Francis Daly
On Sun, Aug 28, 2016 at 04:13:23AM -0400, romkaltu wrote: Hi there, > Ok so it seams my mistake, everything is fine with this configuration, I Good that you have it working. > need extra step in backend to complete my task, as for specific example I > needed to set option in backend server (lit

Re: Nginx real_ip module doesn't work in some conditions

2016-08-28 Thread romkaltu
Ok so it seams my mistake, everything is fine with this configuration, I need extra step in backend to complete my task, as for specific example I needed to set option in backend server (litespeed web server) option "Use Client IP in Header" I must be accidentally disabled it. Posted at Nginx Foru