<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I want to disable processing of all requests that do not have a
valid hostname<br>
<br>
I'm tried to follow the advice on:<br>
<a class="moz-txt-link-freetext" href="http://nginx.org/en/docs/http/request_processing.html#how_to_prevent_undefined_server_names">http://nginx.org/en/docs/http/request_processing.html#how_to_prevent_undefined_server_names</a><br>
<br>
so I have (inside http directive):<br>
<br>
server {<br>
<br>
listen 80;<br>
server_name "";<br>
return 444;<br>
}<br>
<br>
I also tried <br>
<br>
server {<br>
<br>
listen 80;<br>
server_name _;<br>
return 444;<br>
}<br>
<br>
but I am still able to access the website by its IP address?<br>
<br>
what am I doing wrong?<br>
<br>
<div class="moz-signature">-- <br>
<p>Igal Sapir
<br>
Lucee Core Developer
<br>
<a href="http://lucee.org/">Lucee.org</a></p>
</div>
</body>
</html>