By degorych
I have droplet with wordpress on DO. Also I have cloudfare A type record as example.com (ip is droplet ip). It working well but I want adding new alias as reviews.example.com. If user enter reviews.example.com he get my WP site as hi enter example.com. I added in cloudflare A record for reviews.example.com (ip is droplet ip) and added in DO networks new A record for reviews.example.com. But reviews.example.com is redirected to example.com. What I am doing wrong?
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!
Hello,
There are a few things that I could suggest here:
reviews subdomain, I would recommend creating a new Apache Virtual Host so that the reviews subdomain could have its own document root and Apache configuration. You can follow the steps on how to do that here:https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04
reviews subdomain to share the same files as your main website, for example, you would need to do that if you are building a WordPress Multisite. Then you need to edit the Apache virtual host for your main site and under the ServerAlias list add your reviews subdomain.Note that in both cases after making the change to your Apache configuration, you would need to run a config test with:
sudo apachectl -t
And only if you get Syntax OK then start Apache.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.