Re: How to delete cache based on expires headers?

2013-12-29 Thread Indo Php
Hi Is that means that nginx will put the files based on the upstream expire headers? After that nginx will delete the cache files? On Tuesday, December 24, 2013 10:28 PM, António P. P. Almeida wrote: Why you want to do this? nginx can manage expiration/cache-control headers all by itsel

Re: problems setting ttl on single image...

2013-12-29 Thread Steve Holdoway
On Mon, 2013-12-30 at 02:05 +0100, Richard Stanway wrote: > > Here's a snippet of my config... > > > > location = /assets/Photo\ Gallery/Weather/current\.jpg { > > expires 10m; > > log_not_found off; > > } > > > > The "location =" syntax does not use

Re: problems setting ttl on single image...

2013-12-29 Thread Richard Stanway
> Here's a snippet of my config... > > location = /assets/Photo\ Gallery/Weather/current\.jpg { > expires 10m; > log_not_found off; > } > The "location =" syntax does not use regular expressions. You may also want to surround the string with quotes i

Re: ssl handshake fail when proxy between two tomcat with mutual authentication

2013-12-29 Thread flash008
Hi Dirnsnow, Have you find the solution for your problem of mutual auth between Nginx and Tomcat2? I meet the same error as yours when I am using Nginx as a reverse proxy and trying to mutual talk my backend server through mutual SSL. Thank you, flash008 Posted at Nginx Forum: http://forum.ng

problems setting ttl on single image...

2013-12-29 Thread Steve Holdoway
I'm trying to enable a 10 minute autorefresh for my webcam which you can see at http://www.diamondharbour.org.nz/Local-Weather.html Server runs nginx 1.4.4 ( and an ancient CMS called Etomite ). Here's the WPT result http://www.webpagetest.org/result/131229_HV_MK2/ Here's a snippet of my config

Re: Serving default error pages with 'proxy_intercept_errors on'

2013-12-29 Thread Maxim Dounin
Hello! On Sat, Dec 28, 2013 at 09:59:02AM -0500, Maxim Khitrov wrote: > On Sat, Dec 28, 2013 at 7:19 AM, Maxim Dounin wrote: > > Hello! > > > > On Fri, Dec 27, 2013 at 03:47:51PM -0500, Maxim Khitrov wrote: > > > >> Hello, > >> > >> I'm running nginx v1.4.1 on OpenBSD 5.4 and I'd like to use > >

insert subdomain into query

2013-12-29 Thread NginxNewComer
I have setup a wildcard subdomain server(many subdomains) server { listen 80; server_name ~(?.*).localhost; ... ... } I want to make the subdomain apart of the query in the backend when we visit http://clothes.localhost/ backend query http://localhost/script.php?sd=clothes or we v

How do I disable DNS Caching and DNS Reverse Lookup in Nginx ?

2013-12-29 Thread linuxr00lz2013
Hello all Ive been assigned a task to set up an ipv6 to ipv4 reverse proxy for my company. I decided to use nginx to do the job. I found the following article online which describes how to configure nginx as a reverse proxy : http://www.kutukupret.com/2011/05/02/nginx-as-reverse-proxy-ipv6-to-ipv