Re: HTTP status code 499 from long running requests

2013-06-03 Thread justin
Maxim, Does it seem reasonable that the 499 status codes are responsible for double requests? I.E. do you think the client is resending the request after the 499 status? Maxim Dounin Wrote: --- > Hello! > > On Sat, Jun 01, 2013 at 09:09:55PM -0

Re: Nginx permission denied for tmp directory (with correct user)

2013-06-03 Thread Travis Maxwell
Thanks! that worked :) I didn't think about parent directories On Jun 3, 2013, at 11:46 PM, Steve Holdoway wrote: > On Mon, 2013-06-03 at 23:17 -0400, Travis Maxwell wrote: >> Whenever I submit a long post from within wordpress, I get the >> following error: >> >> 2013/06/04 03:04:19 [crit] 1

Re: Nginx permission denied for tmp directory (with correct user)

2013-06-03 Thread Steve Holdoway
On Mon, 2013-06-03 at 23:17 -0400, Travis Maxwell wrote: > Whenever I submit a long post from within wordpress, I get the > following error: > > 2013/06/04 03:04:19 [crit] 12248#0: *491 open() > "/var/lib/nginx/tmp/client_body/08" failed (13: Permission denied) > It works fine if the post

Nginx permission denied for tmp directory (with correct user)

2013-06-03 Thread Travis Maxwell
Whenever I submit a long post from within wordpress, I get the following error: 2013/06/04 03:04:19 [crit] 12248#0: *491 open() "/var/lib/nginx/tmp/client_body/08" failed (13: Permission denied) It works fine if the post isn't that long, but submitting a long one throws a 500 error on th

AW: WBB ACP HTTPS Rewrite rule

2013-06-03 Thread Patrik Kernstock
Thanks for your fast reply, Antonio! I forgot to say, that I try to only enable SSL on ACP on not for the rest of the forum :) Von: nginx-boun...@nginx.org [mailto:nginx-boun...@nginx.org] Im Auftrag von António P. P. Almeida Gesendet: Dienstag, 04. Juni 2013 02:02 An: nginx Betreff: Re: WBB ACP H

Re: WBB ACP HTTPS Rewrite rule

2013-06-03 Thread António P . P . Almeida
Try: server { server_name forum; ... location ^~ /acp/ { return 301 https://forum$request_uri; } } server { server_name forum; listen 443 ssl; location / { return 301 http://forum$request_uri; } location ^~ /acp/ {

WBB ACP HTTPS Rewrite rule

2013-06-03 Thread Patrik Kernstock
Hello, I'm trying since about half an hour to get SSL-only on the administration panel of Woltlab burning board working, but without success. The rule will just be ignored. What I currently have: location /acp/(.*)$ { if ($server_port = 80) { rewrite ^/(.*)$ https://forum/acp/$1

RE: HTTP status codes missing description in header for proxy_pass

2013-06-03 Thread Lukas Tribus
Hi, nginx does its job correctly:    $ curl -I http://nginx.org/404    $ HTTP/1.1 404 Not Found    $ [...] I guess the irregular response comes from your mod_perl backend? Did you check that out? Capturing nginx's debug output of such a request will probably help. http://nginx.org/en/docs/deb

HTTP status codes missing description in header for proxy_pass

2013-06-03 Thread kgoess
We're using nginx as a middle layer in front of our application server (mod_perl). When mod_perl returns an error page, the HTTP status line is missing the "reason phrase" after the status code, like "Not Found", e.g. HTTP/1.1 404 Server: nginx/1.2.1 ...etc should be HTTP/1.1 404 Not Found ...e

Need help: websocket proxy stops working after a while

2013-06-03 Thread Alder Network
I got nginx websocket proxy working but the socket would close in a minute or so. So I add proxy_read_timeout 180s; and it works within 3 minutes but closed the websocket after 3 minutes, but it works OK before that. Why is that? BTW, I am using Nginx 1.4 now. Thanks, - Alder ___

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread Jonathan Vanasco
On Jun 3, 2013, at 10:13 AM, Belly wrote: >>> What is the best setting for my situation? >> >> I would recommend using "fastcgi_max_temp_file_size 0;" if you >> want to disable disk buffering (see [1]), and configuring some >> reasonable number of reasonably sized fastcgi_buffers. I would >>

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread Maxim Dounin
Hello! On Mon, Jun 03, 2013 at 10:13:03AM -0400, Belly wrote: > Thanks Maxim for you answer! > > Maxim Dounin Wrote: > --- > > Hello! > > > > On Mon, Jun 03, 2013 at 08:57:21AM -0400, Belly wrote: > > > > > Hello nginx! > > > > > > I have on

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread Belly
Thanks Maxim for you answer! Maxim Dounin Wrote: --- > Hello! > > On Mon, Jun 03, 2013 at 08:57:21AM -0400, Belly wrote: > > > Hello nginx! > > > > I have one worker-process, which uses over 25GB memory (and doesn't > stop to > > do that). > >

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread Maxim Dounin
Hello! On Mon, Jun 03, 2013 at 08:57:21AM -0400, Belly wrote: > Hello nginx! > > I have one worker-process, which uses over 25GB memory (and doesn't stop to > do that). > My configuration is... let's say special: > > So there is nginx, which proxies all requests to the PHP backend and the PHP >

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread Belly
Thanks for your reply! I don't have performance issues. It's just the memory usage. I don't know how nginx handles its memory, but if I increase the number of worker processes wouldn't this lead into much higher memory usage (worker_process*25GB) ? The one worker is able to handle all requests, I

Re: Memory Management ( > 25GB memory usage)

2013-06-03 Thread shahzaib shahzaib
Hello, Please assign worker-processors according to the number of cpus your server have and reduce or comment the values regarding fastcgi buffers and examine the changes after doing it. On Mon, Jun 3, 2013 at 5:57 PM, Belly wrote: > Hello nginx! > > I have one worker-process, which use

Memory Management ( > 25GB memory usage)

2013-06-03 Thread Belly
Hello nginx! I have one worker-process, which uses over 25GB memory (and doesn't stop to do that). My configuration is... let's say special: So there is nginx, which proxies all requests to the PHP backend and the PHP backend sends a large request back to nginx. I set the fastcgi_buffers very eno

Re: upstream may not have port 80 ; upgrade from 1.2.1 to 1.4.1

2013-06-03 Thread Rasmus Glud Andersen
On Mon, Jun 03, 2013 at 03:06:46PM +0400, Maxim Dounin wrote: > > On Mon, Jun 03, 2013 at 11:31:58AM +0200, Rasmus Glud Andersen wrote: > > > After running nginx 1.2.1 with the following configuration, I now get > > warnings when testing the same configuration under 1.4.1 > > > > [error] > > $

Import Static File into MogileFS

2013-06-03 Thread Indo Php
hi all i want to ask about importing our existing static files into nginx + mogilefs module is that posibble to add like proxy_store and proxy_pass from http address?___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: upstream may not have port 80 ; upgrade from 1.2.1 to 1.4.1

2013-06-03 Thread Maxim Dounin
Hello! On Mon, Jun 03, 2013 at 11:31:58AM +0200, Rasmus Glud Andersen wrote: > Hi, > > After running nginx 1.2.1 with the following configuration, I now get > warnings when testing the same configuration under 1.4.1 > > Any advice on this would be highly appreciated. > > > [error] > $ nginx

upstream may not have port 80 ; upgrade from 1.2.1 to 1.4.1

2013-06-03 Thread Rasmus Glud Andersen
Hi, After running nginx 1.2.1 with the following configuration, I now get warnings when testing the same configuration under 1.4.1 Any advice on this would be highly appreciated. [error] $ nginx -t -c /tmp/nginx.conf