Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot set up 2 ghost instances on one domain #857
Server - AWS EC2
I tried setting up two Ghost Instances on a single domain.
I created two directories blog1 and blog2 in my www folder. I installed Ghost via ghost install command in both of them.
The installation in the first folder executes flawlessly. But when I'm trying to install in the second folder, it overwrites the nginx conf file.
So when I start ghost, it starts the second instance and not the first one.
PS - I fixed this problem by setting up the nginx and systemd configuration files manually.
@sneurgaonkar tested this locally - I figured out what the issue is here.
Ghost-CLI by default creates the configuration file and names it with the base url. When you run
This is something we probably can fix in the CLI at some point, but it's a bit of a complicated fix as it involves modifying the existing nginx config file and adding a new location block for the second subfolder. It's also somewhat tricky because