Welcome! Log In Create A New Profile

Advanced

Accept all server_name's except empty

September 23, 2011 03:24AM
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?

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?

Cheers,
Kaan Yamanyar
Subject Author Posted

Accept all server_name's except empty

yamanyar September 23, 2011 03:24AM

Re: Accept all server_name's except empty

Igor Sysoev September 23, 2011 03:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
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