When I open some .html
file on my Windows 8.1 (for example this file C:\Users\me\sbox\foo\client\index.html
) in a browser (the url is this: file:///C:/Users/me/sbox/foo/client/index.html
), the browser parses the file and I can see it the same way like I visited a web page. No running web-server needed, because it is only html markup file.
I want to do the same on my Ubuntu (Amazon Linux actually). I want to type an IP address of my Ubuntu into a browser and get /var/www/index.html
. I mean public IP, that is: http://123.12.12.12/
or http://123.12.12.12/index.html
and get the page in a browser.
Is it possible? How to achieve it? Do I really need any web servers running? I just want to open an .html
file, not .php
or whatever, no parser needed.
As I understand, I need to:
open :80 port
set some config so that all public inbound http:80 requests should go to
/var/www
folder.
Am I right? How to do it?
index.html
on Linux over the internet.