I want to run a very simple HTTP server. Every GET request to example.com should get index.html served to it but as a regular HTML page (i.e., same
example.com
index.html
The way I do it is to first of all install node static server globally via
npm install node-static -g
then navigate to the directory that contains your html files and start the static server with static.
static
Go to the browser and type localhost:8080/"yourHtmlFile".
localhost:8080/"yourHtmlFile"