Re: Accept Header / cache versioning issue

2015-08-19 Thread B.R.
... or remove the 'Vary: Accept' header from the origin response? ​It seems this header is wreaking havoc and is useless since it won't be cached... why keeping it?​ --- *B. R.* On Wed, Aug 19, 2015 at 7:42 PM, biazus wrote: > I got it! > > The "issue" was the origin server sending "Vary: Accept

Re: Setup for consuming external web APIs from internal app

2015-08-19 Thread Frederik Nosi
Hi, On 08/19/2015 11:57 AM, Chino Aureus wrote: Hi NGinx users, Not sure if this is off topic. Need help on what would be the recommended setup/architecture for consuming external web apis (e.g. twitter, Facebook APIs) securely from an application deployed in an internal network. And how N

Re: Setup for consuming external web APIs from internal app

2015-08-19 Thread Styopa Semenukha
Hi Chino, Could you please explain your architecture in more detail? So far it looks like you're protecting the Internet from your application, and not vice versa. AFAIK, most API don't do callbacks, so you don't need to expose your app to the outside callers. Simply permit outgoing connections

Re: Accept Header / cache versioning issue

2015-08-19 Thread biazus
I got it! The "issue" was the origin server sending "Vary: Accept" header. In order to avoid this behaviour, simply set "proxy_ignore_headers Vary;" Thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261128,261131#msg-261131 ___ nginx m

Re: Accept Header / cache versioning issue

2015-08-19 Thread Francis Daly
On Wed, Aug 19, 2015 at 12:00:21PM -0400, biazus wrote: Hi there, > I noticed that Nginx 1.8.X is taking into account the Client Header "Accept" > for versioning the cache objects, for instance: I don't see it in my brief testing. What nginx config do you use that shows this behaviour? > Then,

Re: Static Content on Different Server Isn't Loaded??

2015-08-19 Thread Francis Daly
On Tue, Aug 18, 2015 at 01:12:54PM -0400, smsmaddy1981 wrote: Hi there, > This WORKS in reading static content from remote server >location ^~/wkspace/ { > proxy_pass http://citwkspace; >} For the request that works: what does your nginx log say that the request to

Accept Header / cache versioning issue

2015-08-19 Thread biazus
Hi Guys, I noticed that Nginx 1.8.X is taking into account the Client Header "Accept" for versioning the cache objects, for instance: This request, generates one object in cache: curl -sv -o /dev/null 'http://www.foo.bar/image.png -H 'Accept: */*' And this, generates another one: curl -sv -o

"Dereferencing Pointer To Incomplete Type" on ARM

2015-08-19 Thread vindicator
I swear I had built the hg default version on my AMD64 just fine, but now I'm doing it on my ARM device running Ubuntu 15.04 with kernel 4.2. I used the default system openssl, but also tried with the master git version all with the same result. Attempts with: 1) ./auto/configure --with-http_ssl_m

Setup for consuming external web APIs from internal app

2015-08-19 Thread Chino Aureus
Hi NGinx users, Not sure if this is off topic. Need help on what would be the recommended setup/architecture for consuming external web apis (e.g. twitter, Facebook APIs) securely from an application deployed in an internal network. And how NGINX can augment in this use case. This is what I ha

Re: nginx makes mysqld die all the time

2015-08-19 Thread Steve Wilson
It looks like your machine is running out of memory, again this is something I think I've dealt with in php-fpm by configuring it to recycle the child processes so they don't start consuming too much memory. Here's my fpm pool config file: [www] user = www-data group = www-data listen = /var/

Re: nginx makes mysqld die all the time

2015-08-19 Thread M. Fioretti
On 2015-08-19 09:01, oscaretu . wrote: Hello. Perhaphs this can help you about the out of memory: OOM Killer: https://www.google.com/search?client=ubuntu&channel=fs&q=OOM+Kiler&ie=utf-8&oe=utf-8 [6] Oscar, and list, I just looked at the several /var/log/messages files. The last one is from

Re: nginx makes mysqld die all the time

2015-08-19 Thread oscaretu .
Hello. Perhaphs this can help you about the out of memory: OOM Killer: https://www.google.com/search?client=ubuntu&channel=fs&q=OOM+Kiler&ie=utf-8&oe=utf-8 Kind regards, Oscar On Wed, Aug 19, 2015 at 8:02 AM, M. Fioretti wrote: > On 2015-08-18 14:36, Steve Wilson wrote: > >> Hi, >> >> When