I just embedded the Mongoose Web Server into my C++ dll (just a single header and recommended in most of the stack overflow threads) and I have it up and running properly with the very minimal example code.
However, I am having a rough time finding any sort of tutorials, examples, etc. on configuring the very basic necessities of a web server. I need to figure out the following…
1) How to allow directory browsing
2 Is it possible to restrict download speeds on the files?
3) Is it possible to have a dynamic list of IPs addresses allowed to download files?
4) How to allow the download of specific file extensions (.bz2 in this case) ANSWERED
5) How to bind to a specific IP Address ANSWERED
Most of the information I have found is in regards to using the pre-compiled binary release, so I am a bit stumped right now. Any help would be fantastic!
1) “enable_directory_listing” option
2)
Not built into Mongoose (at least not the version I have, which is about 6 months old).[EDIT:] Newer versions of Mongoose support throttling download speed. From the manual…3) “access_control_list” option. In the code
accept_new_connectioncallscheck_aclthat compares the client’s IP to a list of IPs to accept and/or ignore. From the manual…http://code.google.com/p/mongoose/wiki/MongooseManual