Multiple server_name directives in same server block?

Roger Fischer roger at
Sat Dec 21 01:25:05 UTC 2019


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

I.e. is the following possible?

server {
    listen ssl;
    server_name * *;
    server_name ~^app1.*\.site3\.org$;

Or do I need to create a second server block?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list