Question
Ghost Configuration Need www
OK, I am having an issue with the preconfigured Ghost image. What I want to do is use www with domain instead of naked. For example, I want http://www.example.com instead http://example.com
I first changed the /etc/nginx/sites-available/ghost file to server_name example.com and changed the /var/www/ghost/config.js file in Production to: url: ’http://www.example.com, I then attempted to access the site. When using example.com, I visit the site, but when I use www.example.com, I get the Nginix Welcome screen.
I then attempted to change he /etc/nginx/sites-available/ghost file to server_name www.example.com and got a bad gateway error 502 on example.com and a 404 error on www.example.com
I know this is a configuration error some place and I could spend hours playing around with it, but I’d prefer to ask here because I have a feeling it is a very easy to fix error.
Thanks!
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.
×