[Django]-Apache2: /etc/apache2/sites-available is missing on macos

8👍

sites-available is a concept from Debian-derived distributions of Linux. MacOS does not have it, and neither do most other Linux flavours.

Instead you need to put your configuration directly in httpd.conf.

(Note, it’s unusual to run a production system on a Mac; if you’re just doing this for development, you can use the built-in runserver rather than messing around with Apache.)

Leave a comment