bitnami / vms

Bitnami VMs
https://bitnami.com
Other
203 stars 43 forks source link

[Ghost] Some content loading over HTTP rather than HTTPS #1373

Closed ohyeahpaulchin closed 6 months ago

ohyeahpaulchin commented 7 months ago

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

bc405637-5209-edf9-7724-32521c753421

bndiagnostic output

? Resources: Found possible issues ? Connectivity: Found possible issues ✓ Processes: No issues found ✓ Mysql: No issues found ? Apache: Found possible issues

bndiagnostic was not useful. Could you please tell us why?

The suggested guides are not related to my issue

Describe your issue as much as you can

I followed the Lightsail install documentation for the Bitnami Ghost package to the letter, however my install is resulting in http/https issues. The "View site" panel on the dashboard, and all site previews from the backend fail to load because they're being served via http. Additionally, attempts to connect to Stripe result in the process timing out (or resulting in a 503 error).

Would appreciate any guidance on this, and step-by-step instructions on how exactly I can fix this.

mdhont commented 7 months ago

Can you check if forcing HTTPS redirection works?

https://docs.bitnami.com/aws/apps/ghost/administration/force-https-apache/

ohyeahpaulchin commented 7 months ago

I just updated all the relevant files, restarted the server, and still no fix unfortunately. Seems like these are the offending resources, according to the inspector

Screenshot 2024-01-22 at 9 59 23 PM
ohyeahpaulchin commented 7 months ago

UPDATE: Finally found the solution via someone else's case!

          Ok I have fixed it in my case.

I needed to add RequestHeader set X-Forwarded-Proto "https" to ghost-https-vhost.conf and set the ghost url via sudo ghost config url https://mydomain.tld

Originally posted by @tojofo in https://github.com/bitnami/vms/issues/1310#issuecomment-1882123164

github-actions[bot] commented 7 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 6 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.