Ghost uses invalid url when used HTTPS


#1

I’m trying to setup Ghost in our subdirectory, here is the Ghost setup that I used:

{url: "https://rakam.io/blog", server: {host: 0.0.0.0}}

The Server IP is 35.202.68.150, and when I try to run curl http//35.202.68.150/blog, here is the response:

Moved Permanently. Redirecting to https//35.202.68.150/blog/

Also curl https//rakam.io/blog returns the same response. However when I used the following config:

{url: "http://rakam.io/blog", server: {host: 0.0.0.0}}

Ghost runs correctly and http//35.202.68.150/blog/ redirects to http//rakam.io/blog

Is it a bug or how should I configure the Ghost configs to make my blog available at https//rakam.io/blog?

BTW I’m using Docker Ghost image and I expect curl http//35.202.68.150/blog to redirect to https//rakam.io/blog

P.S: I used https// in my URLs because the forum doesn’t allow me to post more than 3 links in a post.


#2

I’m still not able to solve the issue, is there anything that I’m missing?


#3

As mentioned in our docs and elsewhere: The docker image is an unofficial community project. You’re very welcome to use it, but there’s nobody on the Ghost core team who uses or supports it. Posting here is fine, but you’re a lot less likely to find someone who is able to help you. You might have better luck solving Docker issues in a Docker community or forum.


#4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.