[no subject]

2017-06-15 Thread Gábor I
___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Le 2017-06-15 à 19:02, Francis Daly a écrit : On Thu, Jun 15, 2017 at 06:29:44PM -0400, Etienne Robillard wrote: Le 2017-06-15 à 18:09, Francis Daly a écrit : Hi there, What request do you make? GET http://localhost/ Ok. Which location{} is used to handle that request? location / Ok.

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Francis Daly
On Thu, Jun 15, 2017 at 06:29:44PM -0400, Etienne Robillard wrote: > Le 2017-06-15 à 18:09, Francis Daly a écrit : Hi there, > >What request do you make? > GET http://localhost/ Ok. > >Which location{} is used to handle that request? > location / Ok. What file-on-the-filesystem is the file you

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Valentin V. Bartenev
On Thursday 15 June 2017 17:45:49 Etienne Robillard wrote: > Hi, > > I can confirm that my python script is working from the command line. > The server (wsgiref) sends a ETag on the initial request with the 200 OK > status code. Additional requests will have the request header > If-None-Match s

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi Francis, Le 2017-06-15 à 18:09, Francis Daly a écrit : What request do you make? GET http://localhost/ Which location{} is used to handle that request? location / You appear to do something with HTTP_IF_NONE_MATCH in "location /" but not in "location /wiki". The /wiki location is handl

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Francis Daly
On Thu, Jun 15, 2017 at 01:46:42PM -0400, Etienne Robillard wrote: Hi there, > I'm trying to implement conditional requests in Django-hotsauce and > would like to use HTTP_IF_NONE_MATCH to return a 304 Not Modified > response. However in nginx the value of HTTP_IF_NONE_MATCH is > incorrect (a emp

Re: Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi, I can confirm that my python script is working from the command line. The server (wsgiref) sends a ETag on the initial request with the 200 OK status code. Additional requests will have the request header If-None-Match set with the correct ETag value and a 304 Not Modified response is ret

Invalid HTTP_IF_NONE_MATCH request header

2017-06-15 Thread Etienne Robillard
Hi, I'm trying to implement conditional requests in Django-hotsauce and would like to use HTTP_IF_NONE_MATCH to return a 304 Not Modified response. However in nginx the value of HTTP_IF_NONE_MATCH is incorrect (a empty string is returned). Here's my nginx config: # configuration file /etc/

Re: Is post_action deprecated?

2017-06-15 Thread Maxim Dounin
Hello! On Wed, Jun 14, 2017 at 05:52:09PM -0400, wonderer wrote: > Hi All, > > To start with, here's some context. From what i've read around, the > post_action directive is to be used with caution. I was able to find this > information following the link from this post: > https://forum.nginx.o

Re: Separate logs within the same server for different server names?

2017-06-15 Thread Lucas Rolff
http://nginx.org/en/docs/http/ngx_http_log_module.html "The file path can contain variables (0.7.6+), but such logs have some constraints" So yes, you can use things such as $host - but there will be a performance penalty. On 15/06/2017, 13.02, "nginx on behalf of ST" wrote: >Hello, > >is

Separate logs within the same server for different server names?

2017-06-15 Thread ST
Hello, is it possible somehow to define separate logs within the same server{} for different server names (server_name one.org two.org;)? access_log /var/log/nginx$server_name/access.log; error_log /var/log/nginx$server_name/error.log; Thank you! ___