Question

Can host Wordpress on domain and Angular on subdomain?

Dear All, First of all sorry if it will be a silly question. My plan is to host a WordPress website to www.example.com for an introduction page. Is it possible to host an Angular SPA to www.angular.example.com or example.com/angular? For angular I need a .net core backend rest API and a mysql database. Can you suggest the steps how can I implement this? Is one droplet with 3 docker (angular, .net core, mysql) and wordpress installation is a good way? Thank you for your answer.


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.

Accepted Answer

Hi @tothtomi7,

This is entirely possible! What I’ll recommend using in this case is a LAMP droplet. Good thing is DigitalOcean does have a pretty good article about the same process you are describing - https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04

The above article will help you install Apache, MySQL and PHP in order for your WordPress website to run properly. It will also set the environment for your angular website as well. You’ll just need to configure a new Vhost on your server for your Subdomain - www.angular.example.com or if you want to use example.com/angular, just creating a new folder in your DocumentRoot will do the trick.

Regards, KDSys

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.