RE: How to setup Nginx as REALLY static-cache reverse proxy

2014-12-10 Thread Jan Regeš
Nobody to help? :-( Regards, Jan Reges ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Using the access_log if directive in 1.6.x

2014-12-10 Thread sudharshanr
Hi, I'm using nginx 1.6.2 on Amazon ec2 linux server. The problem I'm having is that all my 404 errors are going to my access.log. I want them to be redirected to error.log instead. I saw on other forums that with nginx 1.7+, I can use the if directive of access_log to do something like: map

Re: nginx with proxy_cache_use_stale not returning from cache when connection refused

2014-12-10 Thread new299
When the upstream goes away nginx gives the error "502 Bad Gateway nginx/1.4.6 (Ubuntu)". The log contains: " [error] 2624#0: *48941 connect() failed (111: Connection refused) while connecting to upstream," Rather than serving it from cache as I would expect. It should be cached as the page was p

Regular expression length syntax not working?

2014-12-10 Thread hyperion
Hi This is my second post. :-) I have a regular expression in my location directive to match on a URL. When I use: http { ... location ~ ^/event/[0-9,A-Z]{16}/info$ { proxy_pass http://localhost:; } } } I don't get a match. I have to manually repeat t

Content-Type header not proxied to downstream hosts

2014-12-10 Thread hyperion
Hi, I'm new to nginx so am probably making a simple mistake but, for the life of me, I can't see what. I want to proxy requests with all headers that the request had to a downstream server if it matches a regex. I also have an issue with the regex, but let's leave that for another post. The ngi

Re: Creating CNAME

2014-12-10 Thread krajeshrao
yes as AWS does not add CNAME when i have a A record Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255387,255411#msg-255411 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx with proxy_cache_use_stale not returning from cache when connection refused

2014-12-10 Thread Maxim Dounin
Hello! On Wed, Dec 10, 2014 at 11:45:26AM -0500, new299 wrote: > I'm using nginx as a reverse proxy, but I can't get nginx to serve requests > from its cache when the upstream server is refusing connections. I > understood that "proxy_cache_use_stale error" should allow me to do this, > but it do

nginx with proxy_cache_use_stale not returning from cache when connection refused

2014-12-10 Thread new299
Hi, I'm using nginx as a reverse proxy, but I can't get nginx to serve requests from its cache when the upstream server is refusing connections. I understood that "proxy_cache_use_stale error" should allow me to do this, but it doesn't seem to work for me. Have I perhaps misunderstood something?

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread mei...@convertmedia.com
Got it, will try it out. Thanks so much. Meir Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255392,255404#msg-255404 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread Maxim Dounin
Hello! On Wed, Dec 10, 2014 at 08:58:42AM -0500, mei...@convertmedia.com wrote: > Hello Maxim, > > I am so sorry for not being clear. > > My question is, can I have the nginx submit a 204 to the client after a > predefined time? Yes, but that's not a trivial task when using vanilla nginx. For

Re: Creating CNAME

2014-12-10 Thread Darren Pilgrim
On 12/10/2014 4:09 AM, krajeshrao wrote: brooklynwate.org and innoviaweb.com are the two domain name innovled . in this i want to create CNAME for www.brooklynwate.org =>CNAME=>events.innoviaweb.com. when i do this its not working . Dumb question, but are you removing the A record for www.broo

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread mei...@convertmedia.com
Hello Maxim, I am so sorry for not being clear. My question is, can I have the nginx submit a 204 to the client after a predefined time? Thanks so much, Meir Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255392,255401#msg-255401 ___ ngi

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread Maxim Dounin
Hello! On Wed, Dec 10, 2014 at 08:29:28AM -0500, mei...@convertmedia.com wrote: > Thanks so much Maxim, can I send the 204 after a predefined timeout and > after a longer time the send_timeout? Sorry, but I failed to understand the question. As previously explained, you can't send anything if s

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread mei...@convertmedia.com
Thanks so much Maxim, can I send the 204 after a predefined timeout and after a longer time the send_timeout? Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255392,255399#msg-255399 ___ nginx mailing list nginx@nginx.org http://mailman

Re: How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread Maxim Dounin
Hello! On Wed, Dec 10, 2014 at 04:24:09AM -0500, mei...@convertmedia.com wrote: > Hello, > > How can I have nginx return 204 when send_timeout is triggered? After send_timeout it's already too late to return anything, as nginx already tried to send the response to the client. If send_timeou

Re: Creating CNAME

2014-12-10 Thread krajeshrao
Hi brooklynwate.org and innoviaweb.com are the two domain name innovled . in this i want to create CNAME for www.brooklynwate.org =>CNAME=>events.innoviaweb.com. when i do this its not working . Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255387,255396#msg-255396 _

Re: Creating CNAME

2014-12-10 Thread Gregory Edigarov
Hi, What are your real hostnames/domains then? On 12/10/2014 04:24 AM, krajeshrao wrote: Hi Richard , Thanks for the reply ... This issue is been for 1 month ... But still can't resolve it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255387,255391#msg-255391

How can I have nginx return 204 when send_timeout is triggered?

2014-12-10 Thread mei...@convertmedia.com
Hello, How can I have nginx return 204 when send_timeout is triggered? Thanks so much, Meir Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255392,255392#msg-255392 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/li