Two domains and multiple server blocks

Reinis Rozitis r at roze.lv
Sat Aug 12 13:26:37 UTC 2017


> From: nginx [mailto:nginx-bounces at nginx.org] On Behalf Of Iurii Medvedev
> 
> https://nginx.ru/en/docs/http/ngx_http_core_module.html#server_name

And?

There is clearly written:

"
The first two of the names mentioned above can be combined in one: 
server {
    server_name .example.com;
}
"

Which expands to example.com and *.example.com.

The only concern could be performance (similar as with regular expression location blocks). 

rr



More information about the nginx mailing list