by Maursault · 3y ago · 0 comments
> 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.
It would take me hours to figure out how to do all that with Apache.
This is an obvious exaggeration. It would longer just to consolidate media into Plex libraries.
> It would take me hours to figure out how to do all that with Apache.
Wow. Here's a clue
sudo cp /etc/apache2/httpd.conf /etc/apache2/https.conf.bak
sudo vi /etc/apache2/httpd.conf
# hint: learn apache once, use many times
sudo ln -s /Directories/you/want/apache/to/see /Library/WebServer/Documents/
sudo apachectl start
Took me less than 10 minutes.