|
gmHttpServer, a tiny windows webserver |
|
|
|
Written by Mikkel Hansen
|
|
Saturday, 21 January 2006 |
Felt like I wanted to write some vb.net to, you know, keep in shape and all that. Thus this small graphical webserver for windows emerged. It should be very easy to use, as there's just one setting: the webserver root dir. I entertain the idea that gmHttpServer could handle being an image server, but I haven't stress tested it yet. Some features, in a list-like format:
* Multithreaded, spawns a worker thread for each request
* Supports the standard GET request, does not support POST or any other request.
* Shows a realtime log of what the webserver is doing
* Has basic protection against directory traversal
* Automatically listens on port 80 on all your network interfaces
* Saves settings in your windows user profile
* Serves files 'as they are' (no scripting/parsing). Content type is automatically detected. Does not support unicode.
If you don't understand any of the above don't sweat it - the point is that it shouldn't be necessary to know about that stuff. Just download the program, choose a server root directory and you're rolling. For instance, if you choose "c:\webserver" as the root and have a file in that directory called "index.html" you can write "http://127.0.0.1/index.html" to view that file in your browser (if you have the gmHttpServer running, that is) and if you have port 80 open and forwarded to your machine your friends can type "http://your.ip.here/index.html" and view the file.
I take no responsibility for... whatever. The program is not thoroughly tested. Try it because you want to experiment.
You're very welcome to contact me if you have any questions. Also, I'm curious if there's any interest out there in having custom windows applications made for persons or companies - drop me a line, if you might have a request in that vein.
Powered by AkoComment 2.0! |