Installing Ghost Into a Sub-directory
-
wrote on Jan 4, 2024, 4:59 PM last edited by
I'd like to be able to use a reverse proxy to run Ghost in a folder of a site.
Something like mydomain.com/blog would be ghost, but mydomain.com could be WordPress (or whatever else you'd like).
I have accomplished already for clients using Cloudflare workers, but it would be wonderful do it right on the server.
Does anyone know if this is possible on Cloudron? An easy way to do this in the GUI would be amazing.
-
wrote on Jan 4, 2024, 6:05 PM last edited by
LAMP App is the only user controlled rProxy via Apache2.
The rest flows from there.Otherwise you'd need to package a new custom WP+Ghost app with that config which would then live on the read-only filesystem.
-
Right, we don't support installations in a sub path.
Would @robi 's approach work? Given an installation of Ghost at
blog.example.com
and WP already installed atexample.com
, will some apache config (via/app/data/public/.htaccess
) forwarding requests from/blog
intoblog.example.com
work ? -
wrote on Jan 5, 2024, 7:00 PM last edited by
Yeah @robi & @grish that would likely work but I haven't tried yet.
If anyone has experience here, please chime in!
-
wrote on Jan 5, 2024, 7:08 PM last edited by
The simpler approach and what @girish is suggesting is to keep a separate install of WP and Ghost in 2 different apps and join them via the rev proxy config from one of them to keep the desired (sub)domain.
Another option is the embeded iframe from the /blog page that pulls in the other URL.
Let us know what you come up with as a final solution