I went through a bit of trouble having Kirby working on an Apache. Just want to share, what general config runs for me.
The whole setup goes by DigitalOcean on the smallest Droplet you can get and an Ubuntu 16.04+ on it.
Install nginx in the way you like and use my configuration I share on GitHub:
Hostgator: clicking on any link lead to 404