nginx got an 500 error when uploading files

2013-05-25 Thread baalchina
Hi everyone, I am using nginx 1.4.1 and php-fpm 5.3.25. Everything is fine except when I uploading files to server. I have a Discuz! x3(a forum system) and when I post threads, except attachment everything is fine, but when I add a small files(such as 30k rar,jpg or else), nginx give me a 500 er

fastcgi_read_timeout with PHP backend

2013-05-25 Thread B.R.
Hello, I am trying to understand how fastcgi_read_timout works in Nginx. Here is what I wanna do: I list files (few MB each) on a distant place which I copy one by one (loop) on the local disk through PHP. I do not know the amount of files I need to copy, thus I do not know the total amount of ti

Re: Rewriting

2013-05-25 Thread Bozhidara Marinchovska
Hello, Because you placed root inside the location /. As http://wiki.nginx.org/Pitfalls your root should also be placed in the server block. Example: server { listen 80; root/usr/local/www/test; if ($remote_addr ~ '192.1

Re: Rewriting

2013-05-25 Thread Francis Daly
On Fri, May 24, 2013 at 09:01:58AM +0300, wishmaster wrote: Hi there, You've got a few different things happening here, and I suspect that the combination leads to you not getting the results you want. > if ($remote_addr !~ '190\.212\.201\.[0-9]{0,3}') { > rewrite ^/(.*)$ /unav/$1 break; > }

Re: Rewriting and proxy problem

2013-05-25 Thread Francis Daly
On Fri, May 24, 2013 at 02:39:58PM -0300, Sergio Belkin wrote: Hi there, > I am completeley newbie to nginx Welcome. The nginx config follows its own logic, which may not match your previous experiences. When you understand that, you'll have a much better chance of knowing the configuration you