-
Install nginx:
brew install nginx
-
Set up nginx
-
Go to where nginx is installed :
cd /usr/local/etc/nginx
-
Open nginx.conf. At the very last line of nginx.conf, you will see
include servers/*
. Move that line before}
, which should be a line or two above theinclude servers/*
-
Create
codingyard.conf
file underservers/
directory, and copy and paste this. -
Run nginx
sudo nginx
-
You can stop nginx by
sudo nginx -s stop
Write me.