Multiple server_name directives in same server block?

Francis Daly francis at daoine.org
Sat Dec 21 10:25:50 UTC 2019


On Fri, Dec 20, 2019 at 05:25:05PM -0800, Roger Fischer wrote:

Hi there,

> is it possible to have multiple server_name directives in the same server block?

A quick test shows that "nginx -t" does not object; and that the
server_name values are matched with the Host: header as expected.

So: yes.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list