⁂ Article
Serving a simple website from a Jail with Bastille
In this short little howto we will be setting up a simple Jail via Bastille and host a static website.
Beware: The article assumes that sudo is configured. You can of course also use doas or switch to root, if you so desire. Some commands need root rights to work – keep that in mind as you go along!
First, we need to install Bastille itself.
$ sudo pkg install -y bastille
After installing, we enable the bastille service.
$ sudo sysrc bastille_enable=YES
And finally we start it.
$ sudo […]