Re: how to block excluding specific url in nginx?

2014-11-27 Thread goversation
Thank you for replying. You'll get blessed. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255147,255191#msg-255191 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: how to block excluding specific url in nginx?

2014-11-27 Thread goversation
thanks a lot :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255147,255192#msg-255192 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: syslog files per server entry

2014-11-27 Thread Francis Daly
On Thu, Nov 27, 2014 at 04:10:58PM +, Ian Winter wrote: Hi there, > error_log syslog:server=127.0.0.1,facility=local4,tag=nginx warn; > access_log > syslog:server=127.0.0.1,facility=local5,tag=nginx,severity=info main; > If however I want to have a separate access log for certai

Re: how to block excluding specific url in nginx?

2014-11-27 Thread B.R.
Make a location that matches each URI exactly and copy-paste content. As Francis explained, location matches are inclusive, not exclusive, thus everything you do not match goes elsewhere. --- *B. R.* On Thu, Nov 27, 2014 at 9:40 AM, goversation wrote: > thanks for replying. > but I meant that l

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

2014-11-27 Thread Francis Daly
On Wed, Nov 26, 2014 at 05:35:06PM +0530, Joyce Babu wrote: Hi there, > I am trying to move a site with a large number (93) of .htaccess files from > Apache to Nginx. There isn't always a 1:1 correspondence between apache and nginx config, so some things will differ. The suggestions below do do

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

2014-11-27 Thread julianfernandes
Thanks for all the help guys, I will regenerate this key with 2048 and see how that goes. Still think the CPU usage is too high, but I will keep trying to optimize my settings. Have a nice day all =) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255158,255187#msg-255187 _

syslog files per server entry

2014-11-27 Thread Ian Winter
Hi, We use the following: error_log syslog:server=127.0.0.1,facility=local4,tag=nginx warn; access_log syslog:server=127.0.0.1,facility=local5,tag=nginx,severity=info main; Just with the default combined format. If however I want to have a separate access log for certain server

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

2014-11-27 Thread Maxim Dounin
Hello! On Thu, Nov 27, 2014 at 09:21:49AM -0500, julianfernandes wrote: > Ok, just tested it with HTTP instead of HTTPS and while it did reach 100% of > CPU usage from time to time, the average load was 50% and the Blitz.io test > was a lot better: > - 33,086 HITS WITH 29 ERRORS & 2,344 TIMEOUTS

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

2014-11-27 Thread itpp2012
julianfernandes Wrote: --- > Why would SSL perform so badly? I generated the key with 4096 instead > of 2048, but I don't believe that would affect CPU usage this much. http://bench.cr.yp.to/results-encrypt.html Posted at Nginx Forum: http://f

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

2014-11-27 Thread julianfernandes
Ok, just tested it with HTTP instead of HTTPS and while it did reach 100% of CPU usage from time to time, the average load was 50% and the Blitz.io test was a lot better: - 33,086 HITS WITH 29 ERRORS & 2,344 TIMEOUTS Why would SSL perform so badly? I generated the key with 4096 instead of 2048, bu

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

2014-11-27 Thread julianfernandes
Yichun Zhang (agentzh) Wrote: --- > 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 accord

Re: how to block excluding specific url in nginx?

2014-11-27 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.ngi

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

2014-11-27 Thread Joyce Babu
I am getting a new dedicated server and need to decide between Nginx and Apache Event MPM. I have received expert advice to use Nginx, but unless I have a solution to this problem I am unable to move to Nginx. I have been trying to solve this for the past 3 days. I have been checking the Nginx debu

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

2014-11-27 Thread Francis Daly
On Wed, Nov 26, 2014 at 11:24:45AM -0500, sandeepkolla99 wrote: Hi there, > I'm able to verify client certificate successfully. Now, additionally I want > perform the following three validations on client certificate You have $ssl_client_s_dn. If you want to stay purely in nginx.conf, can you

Re: Nginx + lua-nginx, get ssl_session_id

2014-11-27 Thread VladimirSmirnov
Thanks! Then what should I use for TLS connections? P.S. As pointed by resty.session author, I've disabled ssl_session_ticket and now I'm receiving ssl_session_id even with TLS enabled. But I'm not sure that it's best way to deal with this problem. P.S.S. I've used this mail-listing, because it'