Hacker News new | ask | show | jobs
by jagged-chisel 697 days ago
> Turns out you can just run any old program.

It’s amazing how simple some things are. Similarly, an HTTP server can also run any old binary in response to an incoming request. As long as it produces output that looks like an HTTP response, the client will receive that response.

2 comments

but nginx or caddy can't run CGIs, they want scalability to the billions.

Disclaimer: I build a personal social web server https://seppo.social like that on top of shared (apache) hosting requiring no root privileges to install and run.

Or with a few lines of sh you can turn many cli tools to web services like https://qr.mro.name/

good old cgi