Re: [nginx] hello world module build trouble

2014-12-11 Thread cubicdaiya
Hello. Why don't you apply a difference below? --- config.orig 2014-12-12 16:10:06.0 +0900 +++ config 2014-12-12 16:06:19.0 +0900 @@ -1,3 +1,3 @@ -ngx_addon_name=ngx_http_hello_dolly -HTTP_MODULES="$HTTP_MODULES ngx_http_hello_dolly" +ngx_addon_name=ngx_http_hello_dolly_modul

[nginx] hello world module build trouble

2014-12-11 Thread Robert Paprocki
Hello, I am trying to build a simple nginx module to learn more about nginx's internals. I have copied several hello world examples into my own module: http://pastebin.com/esHFtaMw And the config file: http://pastebin.com/t1fpEPe6 I've downloaded nginx 1.7.8 onto a vanilla Ubuntu 14.04 install.

Re: Validating client certificate against CRL

2014-12-11 Thread Maxim Dounin
Hello! On Thu, Dec 11, 2014 at 02:03:35PM -0500, sandeepkolla99 wrote: > Hi, >My Nginx is setup for Mutual SSL and it works well for the below nginx > configuration. >Hierarchy of certificates is RootCA > | >

Validating client certificate against CRL

2014-12-11 Thread sandeepkolla99
Hi, My Nginx is setup for Mutual SSL and it works well for the below nginx configuration. Hierarchy of certificates is RootCA | V ** IntermediateCA

Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread Valentin V. Bartenev
On Thursday 11 December 2014 13:25:45 sudharshanr wrote: [..] > > Hello Valentin, > > Thank you for your reply. Just one question. It is not just the 404 errors > that I want to redirect. I want to redirect all 4xx and 5xx errors. I have > updated my config file as below, but it doesn't seem to w

Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread sudharshanr
Valentin V. Bartenev Wrote: --- > On Thursday 11 December 2014 00:33:24 sudharshanr wrote: > > 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

Re: Content-Type header not proxied to downstream hosts

2014-12-11 Thread hyperion
Hi Francis Thanks again for your response. Using the info you provided I was able to debug and fix the issue. It's actually an issue in the client library I'm using to make the request to Nginx. Mik Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255412,255444#msg-255444 ___

SPDY Server Push Support

2014-12-11 Thread _vigneshh
Any ETA on SPDY Server Push support on nginx?. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255443,255443#msg-255443 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Regular expression length syntax not working?

2014-12-11 Thread hyperion
HI Francis The link to the doc was exactly what I was looking for. The regex works as expected now. Thanks Mik Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255413,255442#msg-255442 ___ nginx mailing list nginx@nginx.org http://mailman.

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

2014-12-11 Thread new299
After adding the following: proxy_cache_valid 200 302 301 10m; It appears to be working. It's unclear to me why: proxy_cache_valid any 10m; Wasn't working, for me. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255408,255441#msg-255441 __

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

2014-12-11 Thread new299
Thanks, I've tried this. My amended configuration is below. However, I'm still getting the same error when the upstream goes away. The cache directory is now being populated correctly however. Any ideas? -- user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_co

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

2014-12-11 Thread Maxim Dounin
Hello! On Wed, Dec 10, 2014 at 10:00:25PM -0500, new299 wrote: > 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

Re: sending 404 responses for epty objects.

2014-12-11 Thread Maxim Dounin
Hello! On Thu, Dec 11, 2014 at 03:54:25AM -0500, Cord Beermann wrote: > Hello, > > Due to issues with a backend beyond my influence i need to fix this with > Nginx. > > Root-Cause: A CMS generates empty files on a filesystem which will be later > filled with content. However: those files are th

Nginx lua module + SPDY = no request body

2014-12-11 Thread KiberGus
Hello. I'm experiencing problems with combination of nginx lua module and SPDI. I use "access_by_lua_file" directive to validate requests. In the script request checksumm is validated, so I need to get body of the POST requests. "ngx.var.request_body" variable is used for this purpose. This code wo

Re: nginx cache expire settings issue.Can anyone help?

2014-12-11 Thread Maxim Dounin
Hello! On Thu, Dec 11, 2014 at 06:32:52AM -0500, anoopov wrote: > Hi I am new to Nginx. I need to add expire -1 for my JSON files in the below > urls > > https://siteaddress/foldername /default.htm#/dashboard/ui.json > > > location /foldername { > index default.html default.htm; >

Re: Using the access_log if directive in 1.6.x

2014-12-11 Thread Valentin V. Bartenev
On Thursday 11 December 2014 00:33:24 sudharshanr wrote: > 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+,

Re: nginx cache expire settings issue.Can anyone help?

2014-12-11 Thread Gregory Edigarov
you do not caching anything with proxy_pass alone. you should use proxy_cache in conjunction. On 12/11/2014 01:32 PM, anoopov wrote: Hi I am new to Nginx. I need to add expire -1 for my JSON files in the below urls https://siteaddress/foldername /default.htm#/dashboard/ui.json location /folde

nginx cache expire settings issue.Can anyone help?

2014-12-11 Thread anoopov
Hi I am new to Nginx. I need to add expire -1 for my JSON files in the below urls https://siteaddress/foldername /default.htm#/dashboard/ui.json location /foldername { index default.html default.htm; proxy_pass http://siteaddress_eapp_entry; } I have tried below

nginx to send 302 after a timeout

2014-12-11 Thread mei...@convertmedia.com
Hello everyone, Can I have an Nginx initiate a 302, redirect, after a specific time? We use Nginx for load balancing and we would like to redirect requests that take more than 50ms (for example). Can it be done? Thanks so much, Meir Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255

Re: sending 404 responses for epty objects.

2014-12-11 Thread itpp2012
On the 'Serving Nginx' I'd use Lua to test for a zero byte file and return the 404 there. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255421,255422#msg-255422 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

sending 404 responses for epty objects.

2014-12-11 Thread Cord Beermann
Hello, Due to issues with a backend beyond my influence i need to fix this with Nginx. Root-Cause: A CMS generates empty files on a filesystem which will be later filled with content. However: those files are there for some time with 0 bytes and will be served with 200 through a chain of a cachin

Re: Content-Type header not proxied to downstream hosts

2014-12-11 Thread Francis Daly
On Wed, Dec 10, 2014 at 09:47:21PM -0500, hyperion wrote: Hi there, > I want to proxy requests with all headers that the request had to a > downstream server if it matches a regex. I suspect there may be a terminology confusion here; but from this mail, I am not sure what problem you are reporti

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

2014-12-11 Thread Ruslan Ermilov
On Wed, Dec 10, 2014 at 11:45:26AM -0500, new299 wrote: > 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 do

Re: Regular expression length syntax not working?

2014-12-11 Thread Francis Daly
On Wed, Dec 10, 2014 at 09:51:11PM -0500, hyperion wrote: Hi there, > location ~ ^/event/[0-9,A-Z]{16}/info$ { > proxy_pass http://localhost:; > } > I don't get a match. [root@monolith1 nginx]# sbin/nginx -t nginx: [emerg] unknown directive "16}/info$" in /usr/