Extremely simple web server for Windows? [closed]

I recently used mongoose for this purpose. It supports Windows. From the homepage:

Mongoose executable does not depend on any external library or configuration. If it is copied to any directory and executed, it starts to serve that directory on port 8080. If some additional config is required - for example, different listening port or IP-based access control, then a mongoose.conf file with respective options (see example) can be created in the same directory where executable lives. This makes Mongoose perfect for all sorts of demos, quick tests, file sharing, and Web programming.


If you have python installed, you can use it to serve the current directory over HTTP:

python -m SimpleHTTPServer

By default, it binds to port 8000.

To choose another port:

python -m SimpleHTTPServer 9000

You can even have CGI support if you use CGIHTTPServer instead. Just make sure that the CGI scripts are in a cgi-bin subdirectory.

SimpleHTTPServer and CGIHTTPServer are python modules that come bundled with standard python installs.

I'm pretty sure that most scripting languages have similar tricks, python just happens to be my favorite swiss army knife.

Of course, python is much bigger than a single small standalone executable, but it just happens to be installed on every computer I ever touch.


Nginx for Windows is like that. Extract, run the executable, and place your documents in the html folder.