High CPU Usage and NGINX Hangup

2014-03-03 Thread loki
I am seeing my NGINX server randomly hangup. Multiple worker processes utilizing 100% CPU. I see the hangups in strace, but not quite sure what would be causing the issue. 0.81 futex(0x7f563c893068, FUTEX_WAIT, 0, NULL) = ? ERESTARTSYS (To be restarted) 92.011974 --- SIGHUP (Hangup) @ 0 (0

nginx as front end cache for WMS

2014-03-03 Thread tt5430
I tried to set up nginx as a front end cache for my WMS server. The typical WMS request is: http://localhost:8080/geoserver/somestring/wms?version=1.1.1&service=WMS&request=WMS&; Below is my nginx configuration: /etc/nginx/nginx.conf: user vriuser; worker_processes 4; pid /var/run/nginx.pid;

Confusion over apparently conflicting advice in guide/wiki/examples

2014-03-03 Thread talkingnews
I'd call myself very much a beginner with NGiNX, but I've been looking further through the documentation, particularly the http://wiki.nginx.org/Pitfalls page, and now I'm left with confusion! This page http://wiki.nginx.org/PHPFcgiExample says "This guide run fine on php.ini cgi.fix_pathinfo = 1

Re: HttpLimitReqModule should return 429 not 503

2014-03-03 Thread Valentin V. Bartenev
On Monday 03 March 2014 15:52:56 justink101 wrote: > Can we get a flag in HttpLimitReqModule to return a http status code 429 Too > Many Requests instead of 503 Service Temporarily Unavailable since this is a > more accurate status code? I know that 429 is not officially defined, but it > is a defa

HttpLimitReqModule should return 429 not 503

2014-03-03 Thread justink101
Can we get a flag in HttpLimitReqModule to return a http status code 429 Too Many Requests instead of 503 Service Temporarily Unavailable since this is a more accurate status code? I know that 429 is not officially defined, but it is a defacto-standard. Perhaps something like: limit_req_exce

Re: [alert] could not add new SSL session to the session cache while SSL handshaking

2014-03-03 Thread Maxim Dounin
Hello! On Mon, Mar 03, 2014 at 05:11:22PM +, Reid, Mike wrote: > I am experiencing the following in my error logs after a recent > upgrade to NGiNX 1.5.10 (from 1.5.8), and also applying SSL / > TLS updates as described on istlsfastyet.com > > [alert] 3319#0: *301399 could not add new SSL

Re: redirect 301 alias domain

2014-03-03 Thread Maxim Dounin
Hello! On Mon, Mar 03, 2014 at 10:43:01AM -0500, zuckbin wrote: > hi, > > i want to do a 301 redirect on all my alias domain for a domain > > but i stuck in an infinite loop! > > server{ > listen 80; > server_name www.aaa.com www.aa.com ... > return 301 http://www.bbb.com$request_u

Re: redirect 301 alias domain

2014-03-03 Thread Francis Daly
On Mon, Mar 03, 2014 at 10:43:01AM -0500, zuckbin wrote: Hi there, > i want to do a 301 redirect on all my alias domain for a domain > > but i stuck in an infinite loop! What's the problem? What request do you make; what response do you get; what response do you want? f -- Francis Da

Re: vbulletin vbseo rewrite rule

2014-03-03 Thread Pierre Hureaux
Hi, I use this : rewrite ^/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; error_page 404 /404.php; if ($request_filename ~ “\.php$” ) { rewrite ^(.*)$ /vbseo.php last; } if (!-e $request_

vbulletin vbseo rewrite rule

2014-03-03 Thread zuckbin
hi, i try to convert theses rules from apache for vbseo vbulletin, but got 404 errors How to convert theses rules for nginx ? RewriteEngine On RewriteBase /forum/ RewriteRule ^[^/]+/.+-([0-9]+)\.html$ vbseo.php?vbseourl=showthread.php&t=$1 [L] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.g

redirect 301 alias domain

2014-03-03 Thread zuckbin
hi, i want to do a 301 redirect on all my alias domain for a domain but i stuck in an infinite loop! server{ listen 80; server_name www.aaa.com www.aa.com ... return 301 http://www.bbb.com$request_uri; } server{ listen 80; server_name www.bbb.com ... } how to

Re: 100% CPU nginx master process

2014-03-03 Thread Maxim Dounin
Hello! On Sun, Mar 02, 2014 at 05:40:09PM -0500, badtzhou wrote: > We are have issue that nginx master process is at 100% CPU and it stop > responding to any request. The CPU utilization for all the workers are low. > > I am also seeing multiple nginx master process running at the same time when

Re: Best possible configuration for file upload

2014-03-03 Thread snarapureddy
Thankyou Yichun for the response. We are using lua-resty-upload and reading chunk by chunk from network and writing it to local disk. I'll post more detail in openresty fourm as you suggested. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247951,248033#msg-248033 ___