Is it possible to serve not a index of a directory but rather an html file using Python SimpleHTTPServer on path '/'?
Having directory with one file login.html serves a directory index on path '/'.
python -m SimpleHTTPServer 7800
I want a content of login.html on '/'.
Is that possible?

SimpleHTTPServer(orhttp.serverin Python3) will serve a directory unless that directory contains a file calledindex.html, in which case it will serve that instead.So just rename
login.htmltoindex.htmland it should do what you want.