Parcourir la source

Merge pull request #2607 from p12tic/doc-config-file-ordering

docs: Add a note about configuration ordering in /etc/nginx/conf.d
Nicolas Duchon il y a 1 mois
Parent
commit
45342410bf
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      docs/README.md

+ 5 - 0
docs/README.md

@@ -816,6 +816,11 @@ services:
 
 </details>
 
+> [!NOTE]
+> The filenames of extra configuration files affect the order in which configuration is applied.
+> nginx reads configuration from `/etc/nginx/conf.d` directory in alphabetical order.
+> Note that the configuration managed by nginx-proxy is placed at `/etc/nginx/conf.d/default.conf`.
+
 ### Per-VIRTUAL_HOST
 
 To add settings on a per-`VIRTUAL_HOST` basis, add your configuration file under `/etc/nginx/vhost.d`. Unlike in the proxy-wide case, which allows multiple config files with any name ending in `.conf`, the per-`VIRTUAL_HOST` file must be named exactly after the `VIRTUAL_HOST`, or if `VIRTUAL_HOST` is a regex, after the sha1 hash of the regex.