# A simple webserver that serves HTML files

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

http://myservername:1234/index.html

• 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

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