I currently have web servers for a web application hosted on AWS and I am planning on launching a blog for the web application, which I plan on hosting from a DigitalOcean server (Nginx) due to its ease of maintenance and direct integration with Ghost CMS, which I will be using as my blog CMS. I am aware that through DNS records it is easy and simple to point a sub-domain to the DigitalOcean droplet to serve the blog from something like blog.example.com
, but I am trying to have the blog accessed from a sub-directory in the parent domain (www.example.com/blog
).
Would it be possible for me to achieve this sub-directory access by adjusting the revers proxy on the Nginx server? Is there a different way to architect this communication between the two servers?
Example:
User goes to www.example.com
(AWS server loads page)
User goes to www.example.com/blog/new-post
(DigitalOcean server loads page)