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

Solution 1:

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 ;)

Solution 2:

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.