apache/httpd — reverse-engineered prompt
Reverse engineered prompt
Build me a reliable web server like Apache HTTP Server. I want it to run from the command line, listen for HTTP/1.1 requests, and serve websites from a folder with sensible default settings so I can test it locally right away.
Make it configurable with a simple config file for things like port, document root, logging, and enabling optional features. Include support for encrypted HTTPS connections if the needed crypto library is available, but make that optional so the basic server still works without it.
Please keep the code organized like a real server project, with clear build and install instructions, helpful error messages, and basic documentation for how to run it. Add a small test site and a few simple tests so I can confirm it works. Look up current docs online if you need to.
Want more depth? Deep Reverse