how to handle "server_name" in intranet environment

Bert Douglas bertd at
Fri Sep 7 14:54:25 MSD 2007

Igor Sysoev <is at ...> writes:

> I forgot about optimize_server_names - by default if there is single
> virtual host on given ip:port pair then nginx do not use server_name at all:
>     server {
>         server_name _ *;
>         optimize_server_names off;

Added directive:  optimize_server_names off;
Result:           Same as before.

More information about the nginx mailing list