When I go to my new blog using https://linuxhowto.tech/ it works just fine. When I click on home at the top it works fine.
When I click on the name of the blog and so on it goes to http://localhost:2368/
I can’t see where to change it so URL will always be https://linuxhowto.tech/. I’ve looked through various config files and can’t seem to find what will make this change.
in config.js the url is set to https://linuxhowto.tech just as the instructions call for.
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!
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.
@marmot7
The first thing I would recommend changing is this server block:
When it comes to HTTP -> HTTPS redirects, you don’t need to specify a location block. All you need to use is:
Beyond that, I just setup and ran a test installation of Ghost + NGINX using your Proxy Config and it’s working without any issues, so it may be the above that’s causing the issues.
So for you domain, you should have two server blocks that look like:
I went ahead and restarted the droplet but somehow made the problem change to this:
LOL. From sort of working to flat out broken.
@marmot7
Are you running Ghost on port 80, or trying to, or are you using a web server such as NGINX/Apache to proxy requests to
http://localhost:2368
?If you’ll post your
config.js
(comment out sensitive data) and, if using web server, the VirtualHost or Server Block details, we can take a look at those configurations and see what we can find.