What needs to be done so that all requests that go to non-existing subdomains go to the home base? (I heard something about option 404, but it doesn't fit).

Now when I try to reach a non-existent subwoofer, I get an error from the browser, supposedly the server is not available.

I tried to indicate something similar, the story repeats: enter image description here

I recently whispered in my ear that you need to somehow somehow properly configure .htaccess ...

  • Do you use VirtualServer in Apache configuration? - Daniel Shatz
  • @Daniel Shatz I use - Vlad

1 answer 1

To add such a record to DNS will be enough:

 *.mywebsite.ru CNAME mywebsite.ru 

From the author of the question: it is important to consider that the problem will not be solved only when specifying this in the ДНС domain. Here you need to configure the NGINX\APACHE configuration files correctly (if you have everything together and NGINX as a proxy server, then you probably only need to edit it).

  • Strange, the option doesn't work. Updated start-post - Vlad
  • to Maksym, and ping checked? Perhaps the records are wrapped on the desired IP, and it remains to pull up on the server ... - borodatych