Multiple server_name directives in same server block?
Roger Fischer
roger at netskrt.io
Sat Dec 21 01:25:05 UTC 2019
Hello,
is it possible to have multiple server_name directives in the same server block?
I.e. is the following possible?
server {
listen 1.2.3.4:443 ssl;
server_name *.site1.org *.site2.org;
server_name ~^app1.*\.site3\.org$;
….
Or do I need to create a second server block?
Thanks…
Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20191220/799fc45a/attachment.htm>
More information about the nginx
mailing list