Biswanath
Biswanath

Reputation: 9185

Util for a light weight web server on linux

Out of curiosity rather than necessity, Is there a util on Linux to set up very light weight web server ?

Want to use it for only gets and would like a very fast install. Basically would like to programmatically start the web server.

Please let me know if the question feels incomplete and you would like more information.

Upvotes: 1

Views: 2481

Answers (5)

Lifeguard
Lifeguard

Reputation: 179

netcat

while true; do nc -l -p 80 -q 1 < somepage.html; done

Source.

Upvotes: 5

theMage
theMage

Reputation: 159

There are several light HTTP Daemons for Linux.

I would recomend:

I'm sure other people have other sugestions.

Upvotes: 1

wajiw
wajiw

Reputation: 12269

Lighttpd is a pretty awesome light-weight server for linux

http://www.lighttpd.net/

Wikipedia also has an article comparing lightweight web servers: http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_servers

Upvotes: 1

Aaron McIver
Aaron McIver

Reputation: 24713

jetty is pretty popular

Upvotes: 1

lisak
lisak

Reputation: 21971

you may look at SimpleHTTPServer. It is in Python, but useful enough. Here is how to use it.

Upvotes: 1

Related Questions