- Install nginx
brew install nginx - Cd into the nginx directory
/usr/local/etc/nginx - Create a
ssldirectory, change and generate a dummy ssl cert:mkdir sslcd sslopenssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt(just accept the default empty settings) - Go back to the nginx directory
cd .. - Create or edit nginx.conf with the following settings:
events {