Has anyone found a good hands on way to learn nginx.conf?
I've been searching for a playground to learn nginx configuration in, something similar to https://regexr.com/ but for nginx conf. Nothing seems to be out there.
Has anyone found a good hands on way to learn nginx.conf?
👤 NegativeLatency Accepted Answer ✓
I'll usually put the following at the top of my conf when I'm trying to get something to work, and want to test it out interactively (makes it run without forking, and log to stdout instead of a file you'd then have to tail):
daemon off;
master_process off;
error_log /dev/stdout;
👤 vkaku
Mine is usually modular. You just want to keep all services, hosts and common things included.
I start with the bare minimum and start adding as need be.