Welcome! Log In Create A New Profile

Advanced

Multiple server_name directives in same server block?

December 20, 2019 08:26PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Multiple server_name directives in same server block?

roger_bc December 20, 2019 08:26PM

Re: Multiple server_name directives in same server block?

Francis Daly December 21, 2019 05:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready