Hacker News new | ask | show | jobs
by xaduha 1868 days ago
Many examples here in the comments and in the gist itself don't follow it to the letter either, it's easy enough to serve one file.

This one might work https://github.com/avleen/bashttpd

> socat TCP4-LISTEN:8080 EXEC:/usr/local/bin/bashttpd

1 comments

> Many examples here in the comments and in the gist itself don't follow it to the letter either, it's easy enough to serve one file.

Curious about what you said, I looked through the gist again and every one of the examples in the gist itself does indeed serve all the files under a path (a "static file server"). Which one are you implying does not?