I can't setup a wildcard subdomain for WordPress Multisite

November 23, 2017 1.1k views
Apache WordPress DNS Ubuntu

I have created a WP multisite for an existing site in order to create a shop subdomain. I have create a wildcard CNAME (Pic: https://i.gyazo.com/82097d51ca5964dded4c58704e794c7c.png), and I have added the line:
ServerAlias *.strongest.co.il
to the files:
/etc/apache2/apache2.conf ;
/etc/apache2/sites-enabled/000-default.conf ;
/etc/apache2/sites-available/000-default.conf ;
The line is inside <VirtualHost *:80> </VirtualHost>, and my subdomain just doesn't work, I have already added this site using my WordPress panel to the multisite network and the page doesn't load; I get the following message:
This site can’t be reached

shop.strongest.co.il’s server DNS address could not be found.

I have tried to run ping shop.strongest.co.il using the command prompt and it give me the following message:
Ping request could not find host store.strongest.co.il. Please check the name and try again.

What can I do?

Be the first one to answer this question.