First, create a folder
mkdir HttpServer
cd HttpServer
2.x edition
python -m SimpleHTTPServer 8080
3.x edition
python -m http.server 9999
Server created successfully , Put the required documents in HttpServer, Access in browser 127.0.0.1:9999 You can see the file