A few years ago I used a super simple free web server for Windows.

The only thing you had to do was copy an exe to a dir, double-click that exe, and - voilá - that dir was now accessible over HTTP.

The only problem is that I can't find that little gem...

link|improve this question

Was it Sami?...softpedia.com/get/Internet/Servers/WEB-Servers/… – Moab Jan 9 '11 at 20:23
feedback

closed as not constructive by slhck, Simon Sheehan, techie007, Tom Wijsman, Sathya Mar 5 at 9:18

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

10 Answers

up vote 12 down vote accepted

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.

link|improve this answer
It's not what I used, but it solves the problem in the same simple fashion. +1 and accepted. – Martin R-L Jan 16 '11 at 19:04
Once started the easy double-clicky way; how do I stop it? – Martin R-L Jan 16 '11 at 19:08
Not really sure. I've not actually used it on Windows. On my Mac you stop it with Ctrl-C. – Wes Jan 16 '11 at 23:00
@Martin: on Windows, it adds an icon to the system tray. Right-click the icon and choose "Exit" (or something along those lines). – onnodb Feb 5 '11 at 16:46
Drop it in a directory with an index.html. localhost:8080 on your browser. Life is good. – JohnnyLambada Jan 17 at 21:12
show 1 more comment
feedback

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.

link|improve this answer
No python installed, hence not just copy an exe and double-click it. – Martin R-L Jan 16 '11 at 17:36
For python 3, python -m http.server – bentsai Sep 1 '11 at 16:40
feedback

I use HFS sometimes in a pinch. Maybe you'll find it useful. HFS

link|improve this answer
Not what I was looking for but it certainly looks nice! +1 – Martin R-L Jan 16 '11 at 18:44
feedback

I am not sure on the one that you used, but Cassini is free and pretty simple.

Available here - http://blogs.msdn.com/b/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx

link|improve this answer
Cassini later turned into the web server used in Visual Studio for testing web sites. Far from an exe to copy and double-click. Nowadays, there's also IIS Express. – Martin R-L Jan 16 '11 at 17:38
feedback

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

link|improve this answer
"place your documents in the html folder" I already have a folder as stated. I don't want to copy any files anywhere. – Martin R-L Jan 16 '11 at 18:47
@Martin then it's as simple as opening up nginx.conf and changing the document location. You can also use the mklink tool in Windows to point the html folder to your folder. – John T Jan 16 '11 at 21:19
feedback

I had the same need and developed Quickshare, it works on Linux and Windows and does what you want (you run it select a directory, and voila). If you wish, it also supports HTTP-AUTH, IP white/black lists, and uploads.

Here is a screenshot and example of usage.

link|improve this answer
feedback

Sounds like you're referring to XAMPP, it does just that.

http://www.apachefriends.org/en/xampp.html

link|improve this answer
2  
XAMPP is an Apache distribution containing MySQL, PHP and Perl. – Nifle Jan 9 '11 at 20:18
1  
While it isn't JUST a web server, it is simple web server that's unzip, run and there you go (with added options for more advanced stuff, obviously) – WernerCD Jan 10 '11 at 0:49
feedback

I once used Wapache, which was even easier, as it required no setup.

Wapache is a software that lets you to create desktop applications using web development technology. It combines a modified version of the Apache 2 HTTP server with an embedded Internet Explorer web browser. Requests to the "web server" are handled internally. Data does not travel through the networking layer, ensuring quick response and reliable operation. Wapache also lets you control various browser settings, such as window dimensions and Javascript availability, giving you a consistent runtime environment.

link|improve this answer
feedback

I found Abyss the easiest thing I know of, I'd still personally prefer to package up lighttpd or similar.

http://www.aprelium.com/

link|improve this answer
Far from as easy as copy an exe and double-click it though... aprelium.com/data/doc/2/abyssws-win-doc-html/setupsimple.html – Martin R-L Jan 16 '11 at 19:01
feedback

http://ultidev.com/products/Cassini/ - MS Cassini fork that can run as a service, C/P from site:

Here are features present in UltiDev Cassini, but not in the original MS Cassini:

* Comes ready for distribution with Visual Studio ASP.NET applications.
* Runs as a windows service;
* Hosts and runs multiple ASP.NET applications;
* Provides management UI and simple API for configuring web applications;
* Comes in two flavors: 2.0 version for ASP.NET 3.5, 3.0 and 2.0 applications, and 1.1 for applications compiled for ASP.NET 1.1.
link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.