Re: Return JSON for 404 error instead of html

2014-05-12 Thread Lord Nynex
Justink101, Using the echo module error_page 404 @404; location @404 { echo '{"status": "Not Found"}'; } On Mon, May 12, 2014 at 9:08 PM, justink101 wrote: > How can I return a custom JSON body on 404, instead of the default html of: > > > > > 404 Not Found > > > >

Re: Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-12 Thread gaop...@richinfo.cn
Think you But If I turn off the words,I have no way is to use 'if' order.An error occurred : [emerg] 14499#0: unknown directive "if($remote_addr" in /usr/local/nginx1/conf/nginx.conf:46 gaop...@richinfo.cn From: Steve Holdoway Date: 2014-05-13 13:09 To: nginx Subject: Re: Compile nginx

Re: Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-12 Thread Steve Holdoway
On Tue, 2014-05-13 at 11:25 +0800, gaop...@richinfo.cn wrote: > hi: > I compiled nginx1.4.7,add > to --with-pcre=/root/nginx/pcre-8.34 --with-http_rewrite_module parameter;An > error occurred :./configure: error: invalid option > "--with-http_rewrite_module" ,Trouble who can talk about what

Return JSON for 404 error instead of html

2014-05-12 Thread justink101
How can I return a custom JSON body on 404, instead of the default html of: 404 Not Found 404 Not Found nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250033,250033#msg-250033 ___

Compile nginx 1.4.7 --with-http_rewrite_module Error

2014-05-12 Thread gaop...@richinfo.cn
hi: I compiled nginx1.4.7,add to --with-pcre=/root/nginx/pcre-8.34 --with-http_rewrite_module parameter;An error occurred :./configure: error: invalid option "--with-http_rewrite_module" ,Trouble who can talk about what is the problem gaop...@richinfo.cn _

Re: http error on upload !!

2014-05-12 Thread Francis Daly
On Mon, May 12, 2014 at 06:01:46PM +0500, shahzaib shahzaib wrote: Hi there, > We're receiving http error most of the time when uploading files with > 500MB. We're using nginx+php-fpm. > What more i need to check ? I'd suggest checking what http error you are getting, and what the log files say

Re: CGI support - Sorry to bring it up

2014-05-12 Thread Francis Daly
On Thu, May 08, 2014 at 03:11:24PM +0100, Lyle wrote: Hi there, > For some of our old Perl CGI scripts we've hit the issue I'm sure > most of you are familiar with. I've searched for solutions and have > found a number, all of which have various caveats. It's unclear as > to what they best way to

Re: Dropped https client connection doesn't drop backend proxy_pass connection

2014-05-12 Thread Peter B.
We're affected by this issue as well. Is there an open ticket where we can track progress at http://trac.nginx.org/? -- Posted via http://www.ruby-forum.com/. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx cache and default error pages

2014-05-12 Thread Maxim Dounin
Hello! On Sun, May 11, 2014 at 09:13:38PM +0200, B.R. wrote: > Quick question: > > Are hardcoded default error pages being cached when *_cache directives > specify their HTTP error code? Or does it only apply to pages specified > with the error_page directive? By default, nginx will cache pages

Re: SSL Client Authentication

2014-05-12 Thread Maxim Dounin
Hello! On Mon, May 12, 2014 at 10:41:47AM -0400, Dustin Oprea wrote: > I have the following *server* configuration for client-authentication: > > ssl on; > ssl_certificate /.../deploy_api_certificate.pem; > ssl_certificate_key /.../deploy_api_private.pem; > > ssl_client_cert

Re: SCGI and uwsgi modules docs

2014-05-12 Thread Valentin V. Bartenev
On Sunday 11 May 2014 21:16:49 B.R. wrote: > Those modules seem to be part of nginx since > 0.8but I > could not find any docs on the uwsgi module on the official website. > Why that? Work in progress, coming soon... btw, http://hg.ngin

SSL Client Authentication

2014-05-12 Thread Dustin Oprea
I have the following *server* configuration for client-authentication: ssl on; ssl_certificate /.../deploy_api_certificate.pem; ssl_certificate_key /.../deploy_api_private.pem; ssl_client_certificate /.../ca_cert.pem; ssl_verify_client on; ssl_verify_depth 1; It look

http error on upload !!

2014-05-12 Thread shahzaib shahzaib
We're receiving http error most of the time when uploading files with 500MB. We're using nginx+php-fpm. nginx client_max_body_size is set to 3000M. php.ini settings are upload_max_size 3000M post_max_sive3000M max_execution_time 6400 max_input_time 6400 memory_limit 2048 php-fpm timeout set

Proxying POST requests for the given conditions

2014-05-12 Thread M. G.
Hi, For all POST requests to nginx. We want to proxy_pass to http://192.168.1.1:8000 if test=1 or to http://192.168.1.2:8080 if test=0 How to configure the above. Thanks, M. G. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/ma