By jtbowlin
I’ve setup a new Ghost blog on Ubuntu 16.04 at pricelesspricing.com. That works fine. However, when I go to www.pricelesspricing.com I get a screen telling me to setup Ghost.
I currently have a CNAME record directing www.pricelesspricing.com to pricelesspricing.com I have an A record for pricelesspricing.com that directs it to by site IP
What I’ve tried:
I’m stuck now and not sure what else to try. Can anyone help please?
Thanks.
JT
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!
Hello,
Based on the information you provided, it seems you’ve already done the required configurations. However, it’s possible that there might be a small issue in your Nginx configuration. Please follow these steps to ensure your Nginx configuration is set up correctly:
/etc/nginx/sites-available/pricelesspricing.com or /etc/nginx/conf.d/pricelesspricing.com):- sudo nano /etc/nginx/sites-available/pricelesspricing.com
server block has the correct server_name directive with both domain names:server {
listen 80;
server_name pricelesspricing.com www.pricelesspricing.com;
# Other configurations...
}
server block for SSL with both domain names as well:server {
listen 443 ssl http2;
server_name pricelesspricing.com www.pricelesspricing.com;
ssl_certificate /etc/letsencrypt/live/pricelesspricing.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pricelesspricing.com/privkey.pem;
# Other configurations...
}
- sudo nginx -t
- systemctl restart nginx
www.pricelesspricing.com is pointing to pricelesspricing.com.If you’ve followed these steps and still encounter the issue, there might be a problem with your Ghost configuration. In that case, edit the config.production.json file in your Ghost installation directory and ensure that the url field includes the primary domain without the www subdomain:
{
"url": "https://pricelesspricing.com",
"server": {
"port": 2368,
"host": "127.0.0.1"
},
// Other configurations...
}
After making changes to the Ghost configuration, restart the Ghost service:
cd /path/to/your/ghost/installation
ghost restart
Now, both pricelesspricing.com and www.pricelesspricing.com should serve the same content.
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.