Proper display of a "server overloaded" page

2014-03-23 Thread Riedel Sven
Hi, I want to set up a small static HTML Page that informs visitors that our site is currently under load if an appserver cannot handle the request within N seconds. What would be the proper way to do this? Just set up a 504.html error page? And what are the different conditions when nginx will re

Re: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-23 Thread Kunal Pariani
What debugs should i enable & how to see these response headers ? I do see this error though. 2014/03/03 14:04:32 [error] 11259#0: *6 upstream sent invalid header while reading response header from upstream, client: 127.0.0.1, server: xxx.default, request: "GET /service/home/~/?auth=co&loc=en_GB&i

Re: how to proxy request to different upstream by url request parameters.

2014-03-23 Thread jqzone
Thanks,it works well! On Sat, Mar 22, 2014 at 2:40 PM, Thomas Glanzmann wrote: > Hello, > > > > How to proxy request to different upstream by url request parameters? > > > http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky > > this is part of the commercial subscription, but you

RE: nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-23 Thread Lukas Tribus
Hi, > I have nginx set as a reverse proxy for a mail server and it throws > this 502 (invalid header) error while trying to fetch a file with a > space in the filename. Any clues on where is this bug in the nginx code? Prior to jumping to conlusion about bugs in nginx, how does this response hea

nginx throws a 502 (invalid header) when downloading a file attachment if filename has a space character

2014-03-23 Thread Kunal Pariani
Hello, I have nginx set as a reverse proxy for a mail server and it throws this 502 (invalid header) error while trying to fetch a file with a space in the filename. Any clues on where is this bug in the nginx code ? I searched on the net and found this one forum but it points to some issue in the

Re: 403 after changing root, but permissions look correct

2014-03-23 Thread Steve Holdoway
Having just had a similar problem with migrating a MySQL database, I suggest that you check whether SELinux/Apparmor is running. Why prople think it's ok to use a program that can be switched off in an instant to improve their 'security' is and always will be a mystery to me! Cheers, Steve On S

How to get rid of caching completely

2014-03-23 Thread Mrinmoy Das
Is there a way to stop caching at all level? I have added *expires -1;* *add_header Cache-Control "private, must-revalidate, max-age=0";* *add_header Last-Modified "";* this on my nginx server block, but there are still some caching are happening. Any way to get rid of t

Fwd: How to get rid of caching completely

2014-03-23 Thread Mrinmoy Das
Mrinmoy Das http://goromlagche.in/ -- Forwarded message -- From: Mrinmoy Das Date: Mon, Mar 24, 2014 at 1:47 AM Subject: How to get rid of caching completely To: nginx@nginx.org Is there a way to stop caching at all level? I have added *expires -1;* *add_heade

Full pathname not sent

2014-03-23 Thread Doc
This might be more of a regex problem on my part than nginx. I do a rewrite to pass the full pathname to thttpd like this: location ~ /radio/download/.*\.mp3$ { rewrite ^ /test/$1; } location /test { proxy_pass http://127.0.0.1:8000; } However the pathname received by thttpd is /test

403 after changing root, but permissions look correct

2014-03-23 Thread Adam Pearlman
I've been struggling with this for a few hours. I installed nginx 1.4.6 on Fedora 20. The test page displayed fine. I changed the root, leaving all other configuration the same, and I get a 403 Forbidden error. If I look at the permissions for the original test page and the new page, they appear

Re: ssl cache pooling ? (kind of)

2014-03-23 Thread Maxim Dounin
Hello! On Sun, Mar 23, 2014 at 06:50:18AM -0400, Larry wrote: > Yep, > > Missed that -big- one. Failed idea. > > Many example show how to loadbalance ssl without problems like lvs, haproxy > > http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/ > > So, Am I bas

Re: Rewrite HTTP status code

2014-03-23 Thread Maxim Dounin
Hello! On Fri, Mar 21, 2014 at 10:52:16PM +, John de Freitas wrote: > Hello. I'm running nginx as a proxy for back-end servers that are > returning a non-standard HTTP status phrase. I'd like to be able to > rewrite the status to something standard. For > example, if the back-end returns:

Re: ssl cache pooling ? (kind of)

2014-03-23 Thread Larry
Yep, Missed that -big- one. Failed idea. Many example show how to loadbalance ssl without problems like lvs, haproxy http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/ So, Am I basically creating an imaginary problem ? And if so, why ssl ticket (rfc 5077) even