Here’s a list of convenient oneliners for serving local files in the current directory. sudo may or may not be needed depending on distro and port numbers.

python

python3 -m http.server [port]
python2 -m simplehttpserver [port]

php

php -s 0.0.0.0:<port>

ruby

ruby -run -e httpd . -p <port>

busybox

busybox httpd -f -p <port>