Run Nginx locally and play with basic configs
Install with brew
First of all your brew will run updates
Nevermind if you get an error, rerun the command.
Check your nginx installed
You should see
To check you nginx version
Check that it runs
ps aux | grep nginx
You should see something like
Or simply in your browser go
what is the same.
sudo nginx -s stop
Basic configuration file is here /usr/local/etc/nginx/nginx.conf.
So you can vim it or subl.
That’s mine initial nginx.conf
You can read how to config multiple sites on your local here.
I regularly add other posts. If you want to be notified you can also subscribe here.
Thank you for your attention
Thank you for your attention. If you have any questions feel free to contact me. I‘ll be glad to help you.