W
W
WeStlik2020-09-07 21:12:42
Apache HTTP Server
WeStlik, 2020-09-07 21:12:42

How to set up dynamic subdomains on VDS?

Implemented a system of dynamic subdomains through APACHE and HTACCESS.
When I was on a regular hosting, everything worked, moved to VDS - it stopped working, although the settings are the same...
The main site goes without problems, but any subdomain, including www.* - "Could not find the server's IP address."
What could be the problem, where to dig?

Add: WWW is specified as an alias (i.e. www.site.ru), as well as *.site.ru, as well as web.site.ru... none of them work, the above error is everywhere

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
ComodoHacker, 2020-09-07
@ComodoHacker

Dig into DNS. Apache settings alone are not enough.
On a shared hosting, it seems that the DNS server directed any subdomain to your Apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question