Question

How to use subdomain in the same server

For example

domain.com -> ipserver wordpress.domain.com -> ipserver joomla.domain.com -> ipserver

so obviously each of the submain having different apllication… Im using apache.

Subscribe
Share

In terms of setting up Apache virtual hosts, you can follow this tutorial for Ubuntu, and this tutorial for CentOS.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean

In terms of setting up Apache virtual hosts, you can follow this tutorial for Ubuntu, and this tutorial for CentOS.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean

In terms of setting up Apache virtual hosts, you can follow this tutorial for Ubuntu, and this tutorial for CentOS.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean

I used the search box on this page and came up with a tutorial on DNS level of setting up subdomains, and in that tutorial are links to application level tutorials as well. See which ones apply for your use case. Good luck.


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.

Hello,

From a DNS standpoint, you would simply create the following records on your DNS page: wordpress CNAME @ joomla CNAME @

From an apache standpoint, you will simply need to create corresponding virtualhost entries to deal with the new incoming traffic.

Please let us know if there is anything else we can help you with.

Best, Mike DigitalOcean Support Check out our community for great tutorials, articles and FAQs! https://digitalocean.com/community