On Linux, busybox
includes a command-line http server.
/usr/bin/busybox httpd -f -p ADDRESS:LISTEN_PORT-h BASE_DIR BASE_DIR
where:
-f
makes the HTTP server run in the foreground,BASE_DIR
is the directory root of the files to serve,ADDRESS
is the listening address,LISTEN_PORT
is the port to listen on