Answer the question
In order to leave comments, you need to log in
What are the disadvantages of such an approach?
If you set up a subdomain in the dns settings, not through cname, but simply * and already with the Apache / nginx settings, listen to each ServerName. What are the disadvantages of such an approach?
Answer the question
In order to leave comments, you need to log in
in the first case, you clearly create a list of subdomains, and control at the web server level. Those. a request to a non-existent subdomain simply will not reach your server.
In the second - requests for any subdomain are transmitted to your server.
Personally, I am a supporter of the second approach - the dns and web server configuration is simplified
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question