Accept all server_name's except empty
igor at sysoev.ru
Fri Sep 23 07:47:56 UTC 2011
On Sep 23, 2011, at 11:24 , yamanyar wrote:
> Dear all,
> How can I set up my nginx configuration file so that it will accept all
> request; however it will deny if "host" header is not added?
server_name ""; # no host header field in request
> Also currently I am logging bytes_send per "host" and then take sum of
> them with a cron job monthly. Is there a better way to achieve this?
More information about the nginx