Ubuntu+Apache2 Add subdomain.

  • Posted December 12, 2017
  • Apache

I use ubuntu and apace2. I installed wordpresses using one - click shell. Then I linked my domain to digitalocean. Subdomains are registered using digitalocean’s cname, which is connected to the main domain when accessing subdomains. I enat to this. When I connect the, do not redirect, It wants to connect to the set domain. What can I do?


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

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.

The WordPress one-click is configured with the WordPress installation as the default and any domain or subdomain requested that does not have it’s own separate apache virtualhost configuration will be directed to your default WordPress installation. With a static site there is more to do to ensure redirection but WordPress is configured by default to forward any request for a different domain to the base URL configured in your WordPress settings.