is there a way to avoid output body when a request is calling for a vhost that not exist?
tOmasEn
tomasen at gmail.com
Sat Dec 5 20:27:31 MSK 2009
is there a way to avoid output body when a request is calling for a vhost
that not exist?
Normally when user send a request to nginx server for a server name doesn't
exits on nginx server, nginx will reply "Bad Hostname".
If you (me) add following lines :
server {
listen 80;
server_name _;
location / {
return 404;
}
}
some cases of nginx return 404, some return 403.
And in all cases, nginx return a html error page with error message in body.
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't return anything like the server is dead to those request?
Thanks for any suggestion. I love nginx.
--
Tomasen
http://twitter.com/ShooterPlayer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091206/eb129865/attachment.html>
More information about the nginx
mailing list