AWS Lightsail - bitnami Ghost - serve site from subfolder as opposed to root

Keywords: Ghost - AWS - Technical issue - Other
Description:
I would like to server my ghost blog site from /blog subfolder as opposed to root e.g. example.com/blog instead of example.com.

I’ve updating the url in /opt/bitnami/apps/ghost/htdocs/config.production.json and adding apache proxy pass entry e.g.

ProxyPreserveHost On ProxyPass /blog/ http://127.0.0.1:2368/blog/ ProxyPassReverse /blog/ http://127.0.0.1:2368/blog/

Hi @phillip.darley

Thanks for using Bitnami Ghost!

We have a Support Tool that will gather relevant information for us to analyze your configuration and logs. Could you please execute it on the machine where the stack is running by following the steps described in the guide below?

Please note that you need to paste the code ID that is shown at the end.

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart:

Hey @jcarmona - thanks for your prompt response. I’ve got this working now.

For anyone who might find it useful:

  • Don’t need to add folder to /opt/bitnami/apps/ghost/htdocs/config.production.json (keep it 127.0.0.1:2368
  • Apache proxy set up:
ProxyPreserveHost On 
ProxyPass /blog/ http://127.0.0.1:2368 
ProxyPassReverse /blog/ http://127.0.0.1:2368

Thank you for sharing your solution!

Glad to see you were able to solve your issue! We are marking the previous answer as “Solution” and this topic as “Closed”.

If you have any other questions, please do not hesitate to let us know. Feel free to create a new topic referencing this one if necessary.

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart: