Why only bash? Here is a portable (bash, dash, zsh, ksh), modular HTTP server I did a while ago: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;alganet&#x2F;140c7c12d1603c244a01" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;alganet&#x2F;140c7c12d1603c244a01</a>