By anmol1771
Hi,
I am new to DO and Ghost platform. I have successfully setup the droplet and set the domain name as directed in the blog post “How To Use the DigitalOcean Ghost Application”. But I am unable to open the website through domain name. I can only open it through IP address.
What should I do?
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!
It is the liability of your hosting company not yours. There may be some technical issue that would only be solved by hosting company. Possibilities of such problem occurrence is only when your domain is expired and not renewed. You should check Tucows/OpenSRS list and if your domain is listed there, you need to renew it by contacting your domain registrar.
Presuming that you have correctly setup an A record pointing your domain name to the droplet’s IP address, there are two files you’ll also want to edit on the server in order to get up and running using the domain name rather than the IP address.
First, edit your Nginx configuration at /etc/nginx/sites-available/ghost and change the current server_name from my-ghost-blog.com to your domain name.
Next, edit your Ghost blog’s configuration file at /var/www/ghost/config.js and update the production url as well:
production: {
url: 'http://my-ghost-blog.com',
Finally, restart both for the changes to take effect:
service ghost restart
service nginx restart
Check out this tutorial for all the information on using the Ghost One-Click app:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.