I installed Ghost manually on an Ubuntu 16.04 VPS by following this tutorial on Vultr docs.
I wanted to install Ghost on my subdomain so I added an A record pointing towards my VPS in DNS settings of my VPS.
A blog X.X.X.X
While Ghost installation, when It asked me for
Enter your blog URL, I entered
Now my blog is up and running at
blog.example.com but when I open my VPS IP directly or visit
example.com, It shows me the default
Welcome to nginx!.
I actually want It to get redirected to my subdomain (where my blog is).
Any idea how can I do this?
While searching, I discovered that It can be done via NGINX configuration settings.
Somewhere It was mentioned that I need to edit the following file and include a code block at the end of It.
but I’m unable to find default.conf in the above-mentioned location.
Though I have discovered the default.conf in the following directory
but on pasting the code, It actually stops loading my main site (