What is Nostr?
EK /
npub1mze…4rcn
2024-08-14 21:31:54

EK on Nostr: So if I `chroot` into some directory in a server config, and I want to run CGI ...

So if I `chroot` into some directory in a server config, and I want to run CGI scripts, do I need to symlink / hardlink `/bin/ksh` into the chroot?

Say my config is:
- slowcgi socket running at /var/gemini/smelly.sock
- gmid config chroots into /var/gemini
- gmid specifies SCRIPT_NAME as /cgi/index.sh
- index.sh is a standars ksh script.

However logs say:

slowcgi[96371]: execve /correct-path-to/index.sh: No such file or directory

#OpenBSD #geminiprotocol
Author Public Key
npub1mzej9zn46kg9n5gcmq4ackfuyz0e3rygzsh95u3t83apcd2fgcvsym4rcn