On 13.09.2010 21:53, Igor Sysoev wrote:
> Please read this:
> http://nginx.org/en/docs/http/server_names.html#miscellaneous_names
but "server_name _;" directive is no more required
in catch-all server for nignx version 0.8.48 and newer.
======================================================================
In catch-all server examples you may see the strange name “_”:
server {
listen 80 default_server;
server_name _;
return 444;
}
There is nothing special about this name, it is just one of a myriad of
invalid domain names which never intersect with any real name. You may
also use something like “--”, “!@#”, and so on.
======================================================================
and nginx users should not use hack "server_name _;" in 0.8.48+ (?)
probably this documentation fragment is slightly out-of-date ?
--
Best regards,
Gena
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx