Welcome! Log In Create A New Profile

Advanced

Domain name wildcard option in NGINX configuration

ScotGram
April 18, 2018 01:54PM
Hello,

We have created a Nginx configuration which with multiple cnames and the
same domain name, and it is working correctly  but we want to be able to
wildcard the domain name so during our system configuration we do not
have to modify the nginx configuration for different domains we are
hosting.

What we want is to replace the

server {
server_name cname1.domainname.com ...
}
server {
server_anem cname2.domainname.com
}

----->
with

server {
server_name cname1.*.com
}

server{
server_name cname2.*.com
}

The associated SSL keys would still be in the SSL directoy, but would
also need to specify a * in the file name

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

Domain name wildcard option in NGINX configuration

ScotGram April 18, 2018 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
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