Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a bunch of HTML files getting generated everytime when I run a periodic task in my server. All I want to do is to display the index.html through a webserver. All the links in the index file are linked within that directory. How to do this efficiently. I don't want the server to be robust. I want to hit something like this at the end

share|improve this question
apt-get install apache then write your files to /var/www/apache2-default/, Apache might not be the most performance efficient on high load sites, but it'll happily sit there in the background using pretty much zero memory and CPU, and it's really simple to install – Smudge Aug 30 '11 at 12:07
up vote 9 down vote accepted

Have you considered installing Lighttpd? It sounds pretty much like what you need.

Also look at the package details for Ubuntu and the article on Softpedia. Possibly ignoring the PHP and MySQL references?

Edit: after installing the web server, do what RainyRat has suggested ;)

share|improve this answer
Sexy!! Thank you very much. I followed this link in particular to have a server up and running in 2 minutes. – bragboy Aug 30 '11 at 21:18

Just get your periodic task to output the HTML files into a specific directory, then set that directory as your webserver's document root and make sure that the default document is set to (or at least includes) index.html. That way, when your task runs the "site" will be updated automatically.

share|improve this answer

For simple static content to be viewed locally, just use the file:// pseudo-protocol, supported by almost every web browser.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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