HTTPS SSL Bitnami GCP
( :80 & redirect loop issues resolved.) (Ghost/GCP)Ghost

Keywords: Ghost - Google Cloud Platform - How to - Secure Connections (SSL/HTTPS)
Description:
Here's how to fix the HTTPS problems ( :80 and redirect loop)
I spent some time troubleshooting a blocker that's stopped me from using the Bitnami Ghost container in production.
There are two issues after setting up your SSL certificate. You'll notice your nav links have :80 appended to the end, and of course lack the S in https.
First part - Fix Ghost URL
Stop Ghost
sudo /opt/bitnami/ctlscript.sh stop
sudo vi /opt/bitnami/apps/ghost/htdocs/config.production.json
Edit the URL part to include the S after http. Remove the :80
Second part - Enable Apache's protocol proxy pass.
sudo vi /opt/bitnami/apps/ghost/conf/httpd-app.conf
Add this to the top of the file:
RequestHeader set X-Forwarded-Proto "https"
Restart Ghost.
sudo /opt/bitnami/ctlscript.sh start
Voila. /kc8 Likes
- When opening https:/blog.startupjob.in, its redirecting to https://127.0.0.1:2368/ and shows This site can’t be reached15
- Website fails when the URL is changed to https:14
- SSL not working on Ghost Admin Panel6
- Feature images NOT loading on published pages2
- HTTPS Redirect issues with Ghost configuration1
- 1 more
created

Mar '18
last reply

Mar '18
- 4
replies
- 3.2k
views
- 3
users
- 14
likes
- 6
links




michielBitnami DeveloperMar '18
Hi @kevc1973,
Thank you for sharing your knowledge with the Community for everyone's benefit.

Regards,
Michiel1 Like8 DAYS LATER

Whenever I would enable https in the config.production.json file it would dump me out on 127.0.0.1:2368 and say it couldn't establish a connection. This solved that issue completely.
I'm only replying because you put "httpd-app.com", should be conf:
sudo vi /opt/bitnami/apps/ghost/conf/httpd-app.conf
1 Like

Thanks, I fixed the post

4 Likes13 DAYS LATER

CLOSED MAR 24, '18
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
Hey there!

Looks like you're enjoying the discussion, but you're not signed up for an account.
When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. And you can like posts to share the love.

Sign Up Remind me tomorrowno thanks
Suggested Topics
There are 23 new topics remaining, or browse other topics in Ghost
Comments