Disable access by IP and unknown hosts

Igor Sysoev igor at sysoev.ru
Tue May 11 10:55:25 MSD 2010


On Tue, May 11, 2010 at 04:44:33PM +1000, Leonardo Crespo wrote:

> Hi.
> 
> How can I disable access by IP to my server and by hosts not defined
> in server_name?
> 
> I only have www.domain.com on server_name but people can still access
> the site via mail.domain.com or by the IP address.

http://nginx.org/en/docs/http/request_processing.html#how_to_prevent_undefined_server_names


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list