A simple HTTP server application for Windows that can be run on demand?

I need a simple HTTP server application that meets the following criteria:

  • It should run on Windows.
  • This does not require new installation of Windows of any kind: programs, frameworks, services, etc.
  • It can be launched using Java (for example, JAR) or .NET, since these frameworks are already installed globally on servers.
  • It must be able to run and on demand Ant build (and / or the command line) on demand.
  • It should be able to host on the port specified at runtime (i.e. not in the configuration file).
  • It should be able to host the main static content (JavaScript, CSS, Images, HTML) from the root directory specified at runtime (i.e. not in the configuration file).
  • No huge distribution folder, for example. Jetty's full distribution is around 40 MB ... too big! Less than 1 MB was preferred.
  • It does not need to support HTTPS (SSL).
  • ITS DO NOT need to integrate with any IDE.
  • He does not need to host any “web applications”, for example. EAR, WARS, JAR, etc.

Any recommendations? I will also need an explanation of the manual / tutorial to set them up, especially if they are based on Java, since I have very little background in Java (and, frankly, not much background in Ant).

Thank!

+3
source share
3 answers

HTTP-, NanoHTTPD. Jar ( , ).

, ( BSD).

http://elonen.iki.fi/code/nanohttpd/

0

onehttpd - https://code.google.com/p/onehttpd/

62.5K. , onehttpd.exe -p 80 c:\var\www.

0

All Articles