is there a way to avoid output body when a request is calling for a vhost that not exist?<br clear="all"><br>Normally when user send a request to nginx server for a server name doesn&#39;t exits on nginx server, nginx will reply &quot;Bad Hostname&quot;. <br>
<br>If you (me) add following lines :<br><br>        server {<br>            listen       80;<br>             server_name  _;<br>             location / {<br>                 return 404;<br>             }<br>       }<br>       <br>
some cases of nginx return 404, some return 403.<br><br>And in all cases, nginx return a html error page with error message in body.<br><br>Is there a way just return 404 and do not return any more error message when user request for a server name which does not exist? OR EVEN BETTER, just don&#39;t return anything like the server is dead to those request?<br>
<br>Thanks for any suggestion. I love nginx.<br><br>-- <br>Tomasen<br><a href="http://twitter.com/ShooterPlayer">http://twitter.com/ShooterPlayer</a><br>