Our thinking


Set up nginx on macOS Ventura to host Munki Managed Software Centre

My web server of choice is nginx, so I’ve been using that to host on-premises Munki Managed Software Centre instances ever since macOS stopped shipping with Apache built-in.

To install nginx and configure for Munki:

Install the Xcode command-line tools:

sudo xcode-select --install

Then install MacPorts from the installer

https://www.macports.org/install.php

Next, install nginx:

sudo port install nginx

This will also prompt to install the dependencies.

Once it’s installed, edit the .conf file to point to your Munki instance, e.g. in /Users/Shared/Munki

sudo vi /opt/local/etc/nginx/nginx.conf

I change the error logging line to set the error log path:

error_log  /Library/Logs/nginx/error.log;

I then change the server_name directive to the hostname of the server, e.g. munki.example.com.au and under location change the root to /Users/Shared/Munki

Finally, make sure you’ve allowed Full Disk Access for daemondo and start nginx up

sudo port load nginx

Leave a Reply