Easily configure a performant, secure, and stable NGINX server.Learn More
Exclude specific sub-domains from server where have wildcard server name
is it possible to have 3 server blocks with following server name?
server block 1
server_name example.com www.example.com;
server block 2
server block 3
reason i want to have like this, my main site will have server block 1, a demo will have server block 2, server block 3 will maintain the configuration for all other sub-domains that my client will create from my application.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×