http://www.perlmonks.org?node_id=385968


in reply to Simple command line web server for running cgis.

I have now taken to using boa as the small webserver. I requires one config file (boa.conf) but that can be made generic and just copied over to the correct directory as needed. My config file is:
Port 8080 ErrorLog error_log AccessLog access_log CgiLog cgi_log DocumentRoot . DirectoryIndex index.html DirectoryMaker /usr/lib/boa/boa_indexer DefaultType text/html AddType application/x-httpd-cgi pl MimeTypes /etc/boa/mime.types
This then allows you to change to the correct directory and then to type boa -c . to start the server. It handles CGI errors well which makes it better than mini_httpd for this usage.

--tidiness is the memory loss of environmental mnemonics