request for an image on the servers folders/subfolders

Nov 29, 2013 at 2:29 AM
hi good day,

Q:how can i request the httpserver for an image that is located in my httpservers folders and subfolders?. for example i have a "images" folder that contains testimage1.jpg and testimage2.jpg
say i want to display in my browser the testimage1.jpg in most server you only have to
http://localhost:44456/admin/images/testimage1.jpg and the browser will display the image. so how can do it using this httpserver.? thanks

Dec 4, 2013 at 7:08 PM
Edited Dec 4, 2013 at 9:26 PM

What you ask for is not available out-of-the-box so to speak.

For the sake of efficiency, I designed the server to dynamically generate and host most content directly out of memory instead of loading it from the file system. This was intended to be a camera proxy application with a web interface, rather than a web server with camera proxy features. So the ability to host arbitrary files from the file system never really made it in. The closest thing you've got with the current code base is described at the bottom of the readme, but this only applies to files with a .htm or .html extension, and it is very limited in order to keep it secure without bothering the user to configure it (an unsecure web server can be a backdoor into the system!).
Html Files

If you like, you can add custom html files to the "Html" 
subdirectory.  These files are regular Html files with the 
sole exception that the first line must be a number between 
0 and 100 to indicate the permission level required to view 
the file.

Any html file with a permission level higher than 0 will 
require authentication before it can be loaded.

Html pages are served at the application root, so to 
access the included example "all.html", you would go to: