Question

Two droplets, one domain

I have two droplets, one with .net core application and second with WordPress. How can I set up domain to be used for example:

Subscribe
Share

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 @gaffkins,

This is achievable without a problem! You’ll need to create your Nginx configuration file for your website domian.com set the DocumentRoot to let’s say /var/www/domain.com and there you’ll have your main .net core application. To have your WordPress in a /blog ULR, you’ll just need to create a folder in the following place - /var/www/domain.com/blog and that’s it.

Of course, you’ll need to install PHP, MySQL/MariaDB in order to run WordPress however the good thing is DigitalOcean have a pretty good article on how to do so - https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04

Regards, KDSys