Setting up nginx with multiple hosts
Press
m to reveal the entire page or ? to show all shortcuts.
To enable https for local web serving with multiple Django apps, it was necessary to generate a self-signed certificate with multiple SANs, to get it properly installed and respected by the system, and then configure both nginx and gunicorn to enable secure connections.
As far as I can tell, to generate the self-signed certificate with multiple local server names, you need a configuration file. The following files seemed to do the trick: