Best lightweight web server (only static content) for Windows

WindowsHttpWebserverStatic Content

Windows Problem Overview


I got application server running in Windows – IIS6.0 with Zend Server to execute PHP. I am looking for lightweight static content only web server on this same machine which will relive IIS form handling static content and increase performance.

It need to be only static content web server – maximum small and maximum effective – lighttpd seems too big because allow to FastCGI.

I am looking for: Windows, static content only, fast, and lightweight.

I am using Windows Server 2003.

Windows Solutions


Solution 1 - Windows

You can use Python as a quick way to host static content. On Windows, there are many options for running Python, I've personally used CygWin and ActivePython.

To use Python as a simple HTTP server just change your working directory to the folder with your static content and type python -m SimpleHTTPServer 8000, everything in the directory will be available at http:/localhost:8000/

Python 3

To do this with Python, 3.4.1 (and probably other versions of Python 3), use the http.server module:

python -m http.server <PORT>
# or possibly:
python3 -m http.server <PORT>

# example:
python -m http.server 8080

On Windows:

py -m http.server <PORT>

Solution 2 - Windows

Have a look at mongoose:

  • single executable
  • very small memory footprint
  • allows multiple worker threads
  • easy to install as service
  • configurable with a configuration file if required

Solution 3 - Windows

The smallest one I know is lighttpd.

> Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. And best of all it's Open Source licensed under the revised BSD license.

Edit: removed Windows version link, now a spam/malware plugin site.

Solution 4 - Windows

Consider thttpd. It can run under windows.

Quoting wikipedia:

> "it is uniquely suited to service high > volume requests for static data"

A version of thttpd-2.25b compiled under cygwin with cygwin dll's is available. It is single threaded and particularly good for servicing images.

Solution 5 - Windows

Have a look at Cassini. This is basically what Visual Studio uses for its built-in debug web server. I've used it with Umbraco and it seems quite good.

Solution 6 - Windows

I played a bit with Rupy. It's a pretty neat, open source (GPL) Java application and weighs less than 60KB. Give it a try!

Solution 7 - Windows

You can try running a simple web server based on Twisted

Solution 8 - Windows

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbensiuView Question on Stackoverflow
Solution 1 - WindowseSniffView Answer on Stackoverflow
Solution 2 - WindowsARFView Answer on Stackoverflow
Solution 3 - WindowsOphir YoktanView Answer on Stackoverflow
Solution 4 - WindowsJames CrookView Answer on Stackoverflow
Solution 5 - WindowsProfKView Answer on Stackoverflow
Solution 6 - Windowsdas_weezulView Answer on Stackoverflow
Solution 7 - WindowsypercubeᵀᴹView Answer on Stackoverflow
Solution 8 - WindowsluchaninovView Answer on Stackoverflow