If you want to quickly save a file through http but you don’t want to install a web server, you can just use netcat.
You can run:
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | nc -l 8080; done
index.html can be any file you want to serve it.
Run it where? Does it have to be in a certain directory?
Should i be able to access it by http://x.x.x.x/index.html ?
Run it wherever. There is no routing, it only serves a single file. It’ll serve the same html document on http://127.0.0.1:8080/ as it would on http://127.0.0.1:8080/literally/anything/else.jpeg