> Running a web server to serve that page and a few other random pages.
Dull. Not just any web server, with Apache 2.4 already installed by default, once httpd.conf is configured, in particular for directory listings and with softlinks to directories with proper permissions, and once the server is started, macOS serves media, i.e. pictures, music and video files that's just sitting in folders on the filesystem, no web development necessary. I never understood the need for dedicated media server software when Apache2 (Web Sharing) has done it so effortlessly since Mac OS X 10.0 Cheetah; it has always just been there.