Installing Ghost Into a Sub-directory
-
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.
-
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 ? -
Yeah @robi & @grish that would likely work but I haven't tried yet.
If anyone has experience here, please chime in!
-
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