Re: how to block excluding specific url in nginx?

2014-11-26 Thread Francis Daly
On Wed, Nov 26, 2014 at 07:24:46PM -0500, goversation wrote: Hi there, > but I meant that location allow only "/" and "/blah" > I want to deny the others except "/" Use three locations. location = / { # allow } location /blah { # allow } location / { # deny } f -- Francis Daly

Re: Upgrading mysql and configurating my custom 404.html page.

2014-11-26 Thread Francis Daly
On Wed, Nov 26, 2014 at 09:24:27PM +0100, Thornx John wrote: Hi there, > I had upgraded mysql and installed php-fpm and stay with nginx, > everything works, but my first goal was to establish an admin page, > so when I'v done this update to the latest version, nothing goes better > for my admin p

Re: how to block excluding specific url in nginx?

2014-11-26 Thread goversation
thanks for replying but I meant that location allow only "/" and "/blah" I want to deny the others except "/" example is as follows abc.com/ = OK abc.com/blah/ = OK abc.com/dd = 403 abc.com/... = 403 help me again! Posted at Nginx Forum: http://forum.nginx.o

Re: NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread Robert Paprocki
Hi, Can you provide the mailing list with the output of 'nginx -V' and a debug log when a worker process is pegged at 100%. See http://nginx.org/en/docs/debugging_log.html for info on debug logs. I also wonder why your supplied config has the following: limit_req_zone $binary_remote_addr zone=on

Re: NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread Yichun Zhang (agentzh)
Hello! On Wed, Nov 26, 2014 at 11:15 AM, julianfernandes wrote: > Running Blitz.io on it the server is getting absolutely murdered by the > NGINX worker processes, which each one using 100% CPU according to top and > htop. 100% CPU usage problems are usually trivial (and also fun) to solve with t

Re: NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread julianfernandes
mex Wrote: --- > hi, > > > does you errorlog tells you something? Nothing at all, I'm afraid. It have an error for OCSP stappling, however disabling it doesn't fix the issue, so I believe that isn't it. Posted at Nginx Forum: http://forum.ng

Re: Upgrading mysql and configurating my custom 404.html page.

2014-11-26 Thread Thornx John
Hello Francis, I had upgraded mysql and installed php-fpm and stay with nginx, everything works, but my first goal was to establish an admin page, so when I'v done this update to the latest version, nothing goes better for my admin panel, I had the following message about mysql :

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread Yichun Zhang (agentzh)
Hello! On Wed, Nov 26, 2014 at 8:29 AM, VladimirSmirnov wrote: > For testing purposes I'm using self-signed ssl cert. > > ngx.log(ngx.DEBUG, "session_id=", ngx.var.ssl_session_id) prints "nil" in > the logs. How can I get access to this variable? > It's very likely that your client sends TLS sess

Re: NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread mex
hi, does you errorlog tells you something? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255158,255162#msg-255162 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

NGINX using 100% of the server CPU when testing with Blitz.io

2014-11-26 Thread julianfernandes
I'm facing an issue here and after six days of looking around I decided to ask for some help here, after all a million heads can think a lot better than one. I have a Ubuntu 14.04 server setup with NGINX, HHVM, PHP5-FPM (as a backup), Percona MySQL, Memcached (which will be replaced by Redis). I h

Nginx + lua-nginx, get ssl_session_id

2014-11-26 Thread VladimirSmirnov
Hi! I'm trying to modify one of auth modules for nginx and I need to get content of either ssl_session_id or any other ssl_* variables with uniq client id to identify connection. But I've got a problems with accessing to this variables from lua. For testing purposes I'm using self-signed ssl cert

Re: Validate Client certificate SDN fields (CN, OU, O, etc..) at Nginx

2014-11-26 Thread sandeepkolla99
Hi Francis, Thanks for your quickest response. My nginx.cong is like this: ssl_certificate server.pem; ssl_certificate_key server.key; ssl_client_certificate ca.pem; ssl_verify_client on; I'm able to verify client certificate successfully. Now, additionally I

Re: Issues with HttpChunkinModule

2014-11-26 Thread Arun John
Hi Wandenberg, I was not aware that nginx auto-detects based on the content length. I will comment out the options and check it out. Thanks for your response. Regards, Arun From: Wandenberg Peixoto Reply-To: Date: Wednesday, November 26, 2014 at 4:20 PM To: Subject: Re: Issues with Http

Re: Default answer at proxy timeout

2014-11-26 Thread B.R.
n ​ginx provides​ ​proxy_read_timeout . However, as documentation states, the timeout is set between messages, so a fragmented answer which takes less than the timeout for each part will succeed. You also have proxy_conne

Default answer at proxy timeout

2014-11-26 Thread Fritz Richter
Hi together, we have a nginx Server serving our requests. Based on our SLAs we need to answer always in 7ms time. Behind the nginx Server, there is a Java Backend, which we proxy through the nginx. The requirement is saying, that in case we can not deliver our answer in 7ms, we need to respond

Re: how to block excluding specific url in nginx?

2014-11-26 Thread Francis Daly
On Wed, Nov 26, 2014 at 07:39:58AM -0500, goversation wrote: Hi there, > but now i have to access "/" location, too > how to block excluding specific url in nginx? Don't exclude. Include. location = / { # whatever should happen for the request "/" } f -- Francis Dalyfr

Re: How can I forward an IP to a directory.

2014-11-26 Thread Francis Daly
On Wed, Nov 26, 2014 at 06:51:36AM -0500, hack3rcon wrote: Hi there, > I mean is when a user Enter "192.168.1.1" it > automatically forwarded to "192.168.1.1/kibana" ? location = / { return 301 /kibana; } f -- Francis Dalyfran...@daoine.org ___

how to block excluding specific url in nginx?

2014-11-26 Thread goversation
hi. i have a trouble and question! my current configuration in nginx is like .. only "/blah/" url can access.. server { location / { return 403; } location ^~ /blah/ { proxy_pass http://127.0.0.1:; } } =

Nginx rewrite non-existent files under sub directory with rewrite rules

2014-11-26 Thread Joyce Babu
Hi everyone, I am trying to move a site with a large number (93) of .htaccess files from Apache to Nginx. There are over 800 rewrite rules to convert. To optimize performance, I have decided to place the rules under separate nested location blocks (61 blocks in total). But I am having problem wit

How can I forward an IP to a directory.

2014-11-26 Thread hack3rcon
Hello Folks. I installed Nginx and Elasticsearch and Kibana and my Linux box IP is 192.168.1.1 but when I enter this IP in browser it show me Nginx start page and I must enter "192.168.1.1/kibana" to show the Kibana start page. How can I doing it automatically? I mean is when a user Enter "192.168.

Re: Issues with HttpChunkinModule

2014-11-26 Thread Wandenberg Peixoto
Hey Arun, as docs says you do not need to compile this module anymore, or even try to set "chunkin on; " The nginx core will "detect" when your response does not have a Content-Length set, and will enable the chunk mode automatically. Just remove that line from your configuration and be happy :D

Re: Escape slashes in log output for JSON format

2014-11-26 Thread kay
I've done the patch for nginx 1.6.2 Now if you use this config: access_log logs/access.log main json; Additional backslash for backslash should appear in log. And it will not break JSON format. Can someone review my changes? https://github.com/kayrus/nginx/commit/682f3684ea331e089aa124fe7fce84

Issues with HttpChunkinModule

2014-11-26 Thread Arun John
Hi, I am trying to set up a nginx server to support chunking. I followed the steps mentioned in the below webpage to use the feature http://wiki.nginx.org/HttpChunkinModule My nginx version is 1.4.1. According to the above link, I don¹t need to build chunking module separate as it is already bui