Read an nginx or Apache block and see what each line really does.
Nginx / Apache Config Explainer on RunTheTests — free browser-based devops tools, no sign-up.