A
A
Alexander Bagirov2015-01-07 15:50:11
Blogs
Alexander Bagirov, 2015-01-07 15:50:11

How to run a second Ghost blog on the same server?

Hello!
At the moment, I have a blog running on the server in the /var/www/ghost folder, working through the standard port set at boot. You can change this port in the configuration file. Along the way, nginx is launched, which opens this blog for the site.ru domain through its port.
Is it possible to load the second one, for example, in /var/www/ghost2, run it under a different port and register another nginx virtual host that opens this blog on its port from another domain?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
ofstudio, 2015-01-20
@alexbagirov

You can run at least 5 or 10 Ghost applications without problems.
The only thing is that each application instance needs to set its own unique port in config.js instead of the default 2368

...
        server: {
            host: '127.0.0.1',
            port: '2368'
        },
...

Well, configure nginx / apache as necessary to proxy to these ports.
Moreover, if you are reluctant to install your own Ghost for each individual blog (more than 50 MB each, just a minute), then it is possible to use one single package for several blogs at once.

B
Boris Lapin, 2015-01-07
@MrBoriska

Yes. And why actually not? Unless Ghost imposes some restrictions on this ... I'm not familiar with Ghost, but I think it should work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question