How how do I use wildcard subdomains with WordPress multisite?

To start with I’d like to say that this is all new to me I am not a developer and I’m used to working with managed servers but like the idea of a faster server and paying by the month. I have spent all day just getting this far so any help anyone can give me is appreciated.

So far I have installed WordPress by following the directions at This is working correctly.

I can access and edit my files using and successfully activated multisites using subdomains.

I created a CNAME record using an asterisk thinking thinking this would create a wildcard subdomain then tried to create child blog/site through WordPress. This is not working. So I created an A record using test3 as the hostname and the ip as the ip thing this would create a subdomain which still didn’t work when I created a new child site in Wordpress.

It took me all day to figure out how to get into developer mode on my Chromebook. I managed to create ssh keys to connect securely from my Chromebook to my droplet server and from to the server. Beyond this I am not comfortable using the command prompt.

It seems that there are a great many of tutorials but they seem to all be geared towards experienced users. If someone knows of a easy to follow step by step tutorial on how to create wildcard subdomains for WordPress Multisite I would appreciate the link.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you for your response. I guess it did work after all because I didn’t do anything more and it is working now. I guess I just didn’t give it enough time to propagate. Thank you.

The wildcard CNAME record is fine (and required). After you’ve added that, you will need to configure Apache to serve your Wordpress instance for all subdomains under your domain. <br>Edit <code>/etc/apache2/apache2.conf</code>, find the section that says <code>ServerAlias</code> and append <code>*</code> to it. Finally, restart Apache (<code>sudo service apache2 restart</code>).