Since we have already learned how to set up a single Jekyll sever, the question may come up how to run two or more Jekyll instances in parallel on the same server. This is what we’ll explain in the following.
First, we create a new blog in our existing home directory:
Now, we have to create the second jekyll service unit file as /lib/systemd/system/jekyll1.service:
where the start1.sh script reads as
For automated start on boot, we again have to link this service under /etc/systemd/system/multi-user.target.wants:
For now, we can start the service manually by sudo service jekyll1 start.
We leave the reverse proxy configuration for the jekyll instance on port 4001 as an exercise to the reader.
That’s it! Now we have a second Jekyll blog running SSL encrypted behind an Apache reverse proxy.