L
L
littleguga2015-08-14 17:11:47
Domain Name System
littleguga, 2015-08-14 17:11:47

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

1 answer(s)
R
Ruslan Fedoseev, 2015-08-14
@littleguga

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 question

Ask a Question

731 491 924 answers to any question