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
There are already some great solutions for a simple nodejs server. There is a one more solution if you need live-reloading as you made changes to your files.
nodejs server
live-reloading
npm install lite-server -g
navigate your directory and do
lite-server
it will open browser for you with live-reloading.