If you list what you’re trying to do, someone might provide you with an example routes.yml file you can use.
The Ghost Docs are a great place to start if you’re trying to understand what the routes.yml is used for and how to configure it with lots of examples!
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.
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
ok, I tried my best but I also give it up
it would better to have multiple ghost under
www/blog1,blog2,blog3
and static page on www/ as root page and some at sub-folders
I heard that ghost is not for multisite or things and no plans for that
so I think it’s best way for none-dev person like me
actually its only posted by me
an game wiki-like things in my language
building site on 1 ghost per game and export them into archive when game is dead
due to lack of my developement skill, installing multiple ghost is ezst way for maintaining for me
but some day, I hope I could try multi author as per game and do things with that