Welcome! Log In Create A New Profile

Advanced

Re: Default_server catch all block not working

February 01, 2012 06:32AM
Ok, first of all thanks a lot Antonio for your answer.
I've followed your instructions adding following block to the very beggining of my only one nginx/site-enabled (in just one of my 2 balanced nginx):

server {
listen 80 default_server;
server_name _;
proxy_intercept_errors on;
error_log /var/log/nginx/000default-error.log debug;
access_log /var/log/nginx/000default-access.log;
return 444;
}

below this block came the 3 vhost I serve, all of them with plenty of server_name's.
More "clues" I surely shoud have given at my first post ::

.- Architecture :: AWS Elastic Load Balancer ====> 2 nginx each one proxying to its own apache2
.- My php application relies a lot on apache redirects in htaccess of the style: .*whatever/ .*whatever.php
.- As soon as i enable the above block, Server seems to respond Ok but the 000default-access.log starts to be filled with:
..-[A] Plenty of requests responded with the 444 code
.- [B] Plenty of strange request like this ::: [01/Feb/2012:12:13:40 +0100] "-" 400 0 "-" "-"

.- In less than 3 minutes, suddenly the above access log stops receiving that bunch of 444 responded requests[A] and it only shows the [B] from time to time (some buffer overloaded?)

Just to say, the debug level and logs probably I did not use it well as it is not adding actual extra info. should it be added to in the rest of the server blocks below the default one?

like an X-File to me ......don't know what else to do or try
Subject Author Posted

Default_server catch all block not working

lockev3.0 January 24, 2012 10:26AM

Re: Default_server catch all block not working

António P. P. Almeida January 24, 2012 10:36AM

Re: Default_server catch all block not working

Mit Rowe January 24, 2012 11:52AM

Re: Default_server catch all block not working

lockev3.0 January 24, 2012 12:57PM

Re: Default_server catch all block not working

lockev3.0 February 02, 2012 07:10AM

Re: Default_server catch all block not working

António P. P. Almeida January 24, 2012 02:52PM

Re: Default_server catch all block not working

lockev3.0 January 25, 2012 09:50AM

Re: Default_server catch all block not working

lockev3.0 January 25, 2012 10:39AM

Re: Default_server catch all block not working

lockev3.0 February 01, 2012 06:32AM

Re: Default_server catch all block not working

António P. P. Almeida January 25, 2012 11:18AM

Re: Default_server catch all block not working

lockev3.0 March 22, 2012 12:32PM

Re: Default_server catch all block not working

lockev3.0 March 28, 2012 04:11AM

Re: Default_server catch all block not working

Jonathan Matthews March 28, 2012 12:12PM

Re: Default_server catch all block not working

lockev3.0 April 16, 2012 04:43AM

Re: Default_server catch all block not working

Maxim Dounin April 19, 2012 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready