Skip to content

Instantly share code, notes, and snippets.

@Cilyan
Cilyan / jail.pl
Last active February 29, 2020 18:39 — forked from wilbowma/jail.pl
A perl script to create nginx chroot in arch linux.
#!/usr/bin/perl
# This script was hastily cobbled together for my own use. It can
# probably break your system. Use at your own risk.
$JAIL = "/srv/http";
$USER = "http";
$GROUP = "http";
$WWW_DIR = "www";
$BIN = "bin"; # "bin" or "sbin"