Do two nginx configuration files operate independently to each other, or can they affect each other in some way?
For example, can I name the upstream block in two configuration files with the same name without causing a conflict?
Do two nginx configuration files operate independently to each other, or can they affect each other in some way?
For example, can I name the upstream block in two configuration files with the same name without causing a conflict?
If you mean configuration files usually found in the conf.d/ directory - no, they're not independent, because they're all included in the main nginx.conf and for nginx they all look like one big configuration file. They're separated just for administration convenience - it's easier to support multiple logically partitioned configuration than one big, messy file.