Re: Require a password for everything except one folder?

2014-11-05 Thread Philipp
Am 06.11.2014 02:46 schrieb nrahl: I'm also trying to add an exception, where any path starting with /Public is allowed by anyone with no password. location ~* ^/Public { satisfy any; allow all; } location /Public { auth_basic off; } _

File '/usr/sbin/nginx' seems to be deleted

2014-11-05 Thread khav
I am seeing a lot of these entries in my logs Nov 6 04:29:13 sv1 kernel: nginx[62598]: segfault at 0 ip 00438f38 sp 0 0007fffa5a934c0 error 4 in nginx (deleted)[40+e2000] Nov 6 04:29:13 sv1 abrt[22289]: File '/usr/sbin/nginx' seems to be deleted Nov 6 04:29:13 sv1 abrt[222

Require a password for everything except one folder?

2014-11-05 Thread nrahl
I'm trying to deny access to all locations on the server, unless the user has a specific IP address or enteres a password. This part is working. I'm also trying to add an exception, where any path starting with /Public is allowed by anyone with no password. I've tried to override it in a location b

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread itpp2012
Ivan Artyukhin Wrote: --- > configuration. I'm still confused why I can set this header for > non-SSL port and I can't do it for SSL. What am I missing? Maybe its a SNI thing, see also http://forum.nginx.org/read.php?2,222512,222516#msg-222516

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread Ivan Artyukhin
Backend correctly analyzes 'host' header. To check it I created simple ServletFilter to 'set' this header and after it backend forms correct URLs. So my problem will be solved if I manage to set 'host' header in nginx configuration. I'm still confused why I can set this header for non-SSL port and

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread itpp2012
With such backends you need to tell the backend that the origin is https, otherwise it will 'think' its serving http since it is unaware of a proxy. ea. http://forum.nginx.org/read.php?2,254615,254618#msg-254618 ___ nginx mailing list nginx@ng

Re: Problem with 'Host' http header when using ssl

2014-11-05 Thread Ivan Artyukhin
As soon as I uncomment '# proxy_set_header Host $host;' line it stops working. All other headers don't matter Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254615,254616#msg-254616 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.

Problem with 'Host' http header when using ssl

2014-11-05 Thread Ivan Artyukhin
I'm using Nginx as reverse proxy with SSL termination. The J2EE application that is behind it sometimes uses host information to create URLs for popup windows. Right now it inserts name of my upstream into URL and popup windows are not launched (obviously). I understand that i have to fill 'Host' h

Re: Can response code be 444 in error_page

2014-11-05 Thread Maxim Dounin
Hello! On Wed, Nov 05, 2014 at 09:00:30AM -0500, bluekyu wrote: [...] > I translated and read the report. I understood the bug is related with only > error_page 400. > If this is correct, my example may be inappropriate. > > My question was whether the response code of error_page can be 444, or

Re: Can response code be 444 in error_page

2014-11-05 Thread bluekyu
Maxim Dounin Wrote: --- > Hello! > > On Wed, Nov 05, 2014 at 04:32:15AM -0500, bluekyu wrote: > > > Hello. > > > > I want to reject a connection when some errors (400, 403, ...) > occur, so I > > used error code 444 in error_page like this: > >

Re: cache manager worker_connections not enough

2014-11-05 Thread Maxim Dounin
Hello! On Wed, Nov 05, 2014 at 04:33:16AM -0500, zhijianpeng wrote: > I am using proxy_cache as a cache server, about 20-30k requests /s. It > sometimes gets slow,and I find lots of such messages: > > 2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not enough > 2014/11/05 17:01:3

Re: Can response code be 444 in error_page

2014-11-05 Thread Maxim Dounin
Hello! On Wed, Nov 05, 2014 at 04:32:15AM -0500, bluekyu wrote: > Hello. > > I want to reject a connection when some errors (400, 403, ...) occur, so I > used error code 444 in error_page like this: > > error_page 400 =444 @reject_conn; > location @reject_conn { > return 444; > } > > When

Re: map_hash_bucket_size, map_hash_max_size, and memory usage

2014-11-05 Thread Maxim Dounin
Hello! On Tue, Nov 04, 2014 at 12:27:51PM -0500, abstein2 wrote: > I was hoping someone could clarify how exactly map_hash_bucket_size and > map_hash_max_size should be set and the impact it has on memory. > > For map_hash_bucket_size, it says it should be a multiple of the processor's > line ca

Re: SPDY inflate errors in nginx 1.7.4 - 1.7.7

2014-11-05 Thread tunist
"There's no way to find out what caused the error only by looking to standard error message. You should provide the debug log at least." - ok, thanks - i will post what i can find once the next error occurs. i upgraded to 1.7.7 and there have been 2 of these errors since then, though debug was not

cache manager worker_connections not enough

2014-11-05 Thread zhijianpeng
I am using proxy_cache as a cache server, about 20-30k requests /s. It sometimes gets slow,and I find lots of such messages: 2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not enough 2014/11/05 17:01:32 [alert] 22169#0: 512 worker_connections are not enough 2014/11/05 17:04:12 [al

Can response code be 444 in error_page

2014-11-05 Thread bluekyu
Hello. I want to reject a connection when some errors (400, 403, ...) occur, so I used error code 444 in error_page like this: error_page 400 =444 @reject_conn; location @reject_conn { return 444; } When I tested it, the network connection was waiting continuously, not closed (reseted). I wo