There are many ways to use Ghost… so the answer depends on what you are trying to do.
Here are some ways you can install Ghost:
- ONE Ghost with MANY Authors - you set up one GHOST and invite many Authors to join, they can each write their articles. You set up www.myblog.com/authors page to list all your Authors, and they each have www.myblog.com/author1/, www.myblog.com/author2/ - which index the articles for each Author.
- ONE Ghost with MANY COLLECTIONS of articles - you set up ONE Ghost and then configure
routes.yaml to split your articles into collections, e.g. www.myblog.com/collection1/ www.myblog/collection2/ - you need to manage your primary_tags for this to work properly.
- MANY GHOSTS - you set up MANY GHOSTS on different domains - blog1.myblog.com, blog2.myblog.com, blog3.myblog.com - and of course you need to manage your DNS and your SSL certificates
So you can set up Ghost in any of these ways - depending on what you are trying to do…
You can try to setup ONE DOMAIN with MANY GHOSTs - but this will be difficult. You could set up your folders like this:
/var/www/www.myblog.com/ - GHOST on port XXX
/var/www/www.myblog.com/blog2 - GHOST on port YYY
/var/www/www.myblog.com/blog3 - GHOST on port ZZZ
In this case, each GHOST has its own installation folder, port and configuration - they are completely separate. You will have to set the correct
config.production.json URL so Ghost knows where it is installed.
You will also need good understanding of your web-server configuration to map handling of each folder to the correct GHOST port.
I would guess that the
ghost-cli will have problems with this setup - for example when attempting to set up LetsEncrypt certificates for the domain etc. so you will probably have to manage your own
certbot certificate renewal.
I once tried to mix Ghost and an Online Shop as sub-folders under a single-domain, and gave up after a couple of days.
If you get this to work, you should publish an article - as its a complex task, and I’d be interested in the details