nginx 1.8.0 not logging properly

2015-12-09 Thread Dennis Jacobfeuerborn
Hi, I'm using the Nginx 1.8.0 rpm found on http://nginx.org/packages/centos/7/x86_64/RPMS/ with a config that has been working fine so far with Nginx 1.6.x. The problem is that sometimes I get 500 Internal Server Errors but even though have the line "error_log /var/log/nginx/error.log warn;" in n

Re: Quick performance deterioration when No. of clients increases

2013-10-11 Thread Dennis Jacobfeuerborn
On 11.10.2013 10:18, Steve Holdoway wrote: The ultimate bottleneck in any setup like this is usually raw cpu power. A single virtual core doesn't look like it'll hack it. You've got 35 php processes serving 250 users, and I think it's just spread a bit thin. Apart from adding cores, there are 2

Re: Setting the status code

2013-08-06 Thread Dennis Jacobfeuerborn
On 06.08.2013 13:31, Richard Kearsley wrote: On 06/08/13 04:02, Dennis Jacobfeuerborn wrote: Since I determine the reason for the denied access in lua a way to do it there would also help. I already tried "nginx.status = 403" followed by a "nginx.exec('/reason1')&quo

Re: Setting the status code

2013-08-06 Thread Dennis Jacobfeuerborn
On 06.08.2013 08:29, mex wrote: let your app handle and deliver error-pages See basically all I want to do is return a single static html file and having to set up php/python/etc. just to serve this file seems like overkill to me. This is pretty much the most simple case for a web server to

Setting the status code

2013-08-05 Thread Dennis Jacobfeuerborn
Hi, I'm wondering how I can set a status code and still deliver a custom web page? Specifically I want to use a status code of 403 Forbidden but depending on the exact reason I want to display different custom error pages for that case. When I use the "return 403" directive I can no longer deli

Custom forced 503 page does not work

2013-07-25 Thread Dennis Jacobfeuerborn
Hi, I'm trying to deliver a custom 503 page for all requests the server receives but with the following config it doesn't work. server { listen 81; server_name localhost; error_log /var/log/nginx/error.log debug; root /usr/share/nginx/html; location / { retu