What’s your URL? This is the easiest way for others to debug your issue
Right now I’m testing against the nodejs server directly (localhost:2368, however the url configured is:mydomain.com/blog/
What version of Ghost are you using?
Ghost-CLI version: 1.8.1
Ghost Version (at /var/www/…/ghost): 1.25.4
What steps could someone else take to reproduce the issue you’re having?
Installing from the beginning and using the provided config.
Also if I change the URL from the config file to http://127.0.0.1:2368 then I get an HTTP code 200 from the curl (so it works), but later when I access the site through the apache redirection, all links are pointing to 127.0.0.1:2368
The https is definitely the reason you were seeing a 301 - if Ghost receives a http request when a https url is configured then it will redirect to the https version.
If you’re only testing locally then sticking with http is fine. If you’re setting up a production install ghost-cli will handle the https and certificate set up for you, alternatively if you’re configuring things manually ensure that you match all the required headers in your nginx/apache config.
Do I need to set anything in the ghost side regarding the SSL? I think I have everything set up in my apache conf (when URL in ghost is without https, everything works perfectly).
With the ghost install the ssl certification configuration is skipped if you skip the Nginx configuration, so I’m not sure if in that step, something is done for ghost too. Is there any way to configured manually?
All SSL termination is done at the web server/proxy level so if you’ve set up Apache to do that then you’re pretty much there The only thing Ghost needs is for your Apache proxy to pass the required headers so it can handle the request properly.