[ANN] ngx_openresty mainline version 1.5.8.1 released

2014-01-10 Thread Yichun Zhang (agentzh)
Hello folks! I am happy to announce that the new mainline version of ngx_openresty, 1.5.8.1, is now released: http://openresty.org/#Download This is the first openresty release with the latest nginx 1.5.8 core bundled. And we have a lot of components updated as usual, which reflects the ongo

perl regex to extract "domain" and "extension" into variables from 'server_name'

2014-01-10 Thread kml865
I want to extract just the "domain" and "extension" parts from an nginx server_name for use as variables later in nginx conf. For example, server_name ... ? ...>; ... location = /test.html { alias /local/path/to/$domain.$extension.html; }

[ANN] Windows nginx 1.5.9.1 Cheshire

2014-01-10 Thread itpp2012
14:05 10-1-2014: nginx 1.5.9.1 Cheshire When she sleeps she gently purrs, you hardly know she's there, but when she wakes you're gonna hear her roar. nginx Cheshire release is here ! This native build runs on Windows XP SP3 and higher, both 32 and 64 bit. Based on nginx 1.5.9 (4-1-2014) with; + c

Re: proxy_cache incorrectly returning 304 Not Modified

2014-01-10 Thread Jon Leighton
Hello! On 10/01/14 16:06, Maxim Dounin wrote: > Note though that nginx doesn't understand "Vary: Accept-Encoding", > and will return cached response regardless of client's > Accept-Encoding. To make sure gzipped responses aren't sent to > clients without gzip support you should either disable c

Re: proxy_cache incorrectly returning 304 Not Modified

2014-01-10 Thread Maxim Dounin
Hello! On Fri, Jan 10, 2014 at 12:18:18PM +, Jon Leighton wrote: > Hello Maxim, > > Thanks for your reply. > >> Does this look like a bug? Or could it be a configuration issue? I can't > >> think of any reason why this should be the correct thing for the proxy > >> cache to do. > > > > This

Re: PHP below server root not served

2014-01-10 Thread Francis Daly
On Fri, Jan 10, 2014 at 10:37:50PM +1100, nano wrote: > On 10/01/2014 8:36 PM, Francis Daly wrote: > >On Fri, Jan 10, 2014 at 02:07:34PM +1100, nano wrote: > >>On 10/01/2014 7:58 AM, Francis Daly wrote: Hi there, This mail is going to sound a bit negative. > >>> location ^~ /phpmyadmin/ { > >>

Re: One link/area on a https site with a different SSL config?

2014-01-10 Thread Patrick Lists
On 10-01-14 09:16, Igor Sysoev wrote: On Jan 10, 2014, at 12:13 , Andreas S. wrote: Patrick Lists wrote in post #1132735: On 09-01-14 22:48, Styopa Semenukha wrote: Patrick, It's not possible, because SSL works on lower level (session layer) than HTTP (application layer). Thank you for you

Re: proxy_cache incorrectly returning 304 Not Modified

2014-01-10 Thread Jon Leighton
On 10/01/14 12:18, Jon Leighton wrote: > Do you know of any reasons why the response might be blank? I copied the > cache file so I could review it, and I checked that the X-Request-Id > matches so it's definitely the same entry. The cache file *does* contain > the response body - in gzip form. I a

Re: proxy_cache incorrectly returning 304 Not Modified

2014-01-10 Thread Jon Leighton
Hello Maxim, Thanks for your reply. >> Does this look like a bug? Or could it be a configuration issue? I can't >> think of any reason why this should be the correct thing for the proxy >> cache to do. > > This easily can be a result of a misconfiguration (e.g., > proxy_set_header used incorrect

Re: PHP below server root not served

2014-01-10 Thread nano
On 10/01/2014 8:36 PM, Francis Daly wrote: On Fri, Jan 10, 2014 at 02:07:34PM +1100, nano wrote: On 10/01/2014 7:58 AM, Francis Daly wrote: Per nginx logic, location 4 is used for every request for which it is the "best match". It just happens that there are no such requests. It's the administ

Re: geoip_country_code header is deleted when I set another custom header

2014-01-10 Thread MarcPapers
Thanks Ruslan, obviously at the level(http server) that I was setting the mobile header, it didn't use to inherit the geoip header because it was set in a previous level (nginx configuration). I didn't see it. Thanks for your help. What I did for doing it work properly was adding the geoip at the s

Re: monitoring cache statistics

2014-01-10 Thread Ruslan Ermilov
On Fri, Jan 10, 2014 at 03:50:05AM -0500, bodomic wrote: > Hi people! > > Just a small note - this patch does not work with nginx-1.4.4 :) > I think it's ok after 4.5 years, maybe there is a working version around? There's the http://nginx.org/en/docs/http/ngx_http_status_module.html module that

Re: geoip_country_code header is deleted when I set another custom header

2014-01-10 Thread Ruslan Ermilov
On Fri, Jan 10, 2014 at 04:40:00AM -0500, MarcPapers wrote: [...] > location / { > proxy_pass http://xx; > access_log /var/log/nginx/xx.access.log menosbasico; > proxy_set_header ismobiletraffic $mobile_flag; > } > > ## END DEFAULT FILE ## >

Re: "Primary script unknown" wp-login.php

2014-01-10 Thread nano
On 10/01/2014 3:46 AM, Miguel Clara wrote: I resolved this problem by making the /wordpress directory the server root. However, I now have the problem of /usr/local/www/phpMyAdmin being inaccessible, due to the same error. You can, and its probably best to use: fastcgi_param SCRIPT_FILENAME

geoip_country_code header is deleted when I set another custom header

2014-01-10 Thread MarcPapers
Hello everybody. I have a nginx (version: nginx/0.7.67) running as a loadbalancer for two tomcat7 servers with the geoip module. It was working correctly until I changed the configuration file placed in available-locations called default (we work only with the default one). The changes were made to

Re: PHP below server root not served

2014-01-10 Thread nano
On 10/01/2014 7:58 AM, Francis Daly wrote: The suggestion is along the lines of: location ^~ /phpmyadmin/ { location ~ \.php$ { # config for php scripts to be fastcgi_pass'd elsewhere } # config for static files to be served directly } and then whatever other top-le

Re: PHP below server root not served

2014-01-10 Thread Francis Daly
On Fri, Jan 10, 2014 at 02:07:34PM +1100, nano wrote: > On 10/01/2014 7:58 AM, Francis Daly wrote: Hi there, just some quick responses to parts... > It was my mistake assuming Apache logic[0] would be used. Yes -- in general, in Apache, the configuration that applies to a request can come from

Re: monitoring cache statistics

2014-01-10 Thread bodomic
Hi people! Just a small note - this patch does not work with nginx-1.4.4 :) I think it's ok after 4.5 years, maybe there is a working version around? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2520,246221#msg-246221 ___ nginx mailing list

Re: One link/area on a https site with a different SSL config?

2014-01-10 Thread Igor Sysoev
On Jan 10, 2014, at 12:13 , Andreas S. wrote: > Patrick Lists wrote in post #1132735: >> On 09-01-14 22:48, Styopa Semenukha wrote: >>> Patrick, >>> >>> It's not possible, because SSL works on lower level (session layer) than >>> HTTP >> (application layer). >> >> Thank you for your feedback. T

Re: One link/area on a https site with a different SSL config?

2014-01-10 Thread Andreas S.
Patrick Lists wrote in post #1132735: > On 09-01-14 22:48, Styopa Semenukha wrote: >> Patrick, >> >> It's not possible, because SSL works on lower level (session layer) than HTTP > (application layer). > > Thank you for your feedback. That's unfortunate. I hope to see flexible > SSL config one day