doc: Added explanation for using the custom.conf folder

This commit is contained in:
GreyXor 2021-10-28 12:15:23 +02:00 committed by Léo Colombaro
parent 7f306fb5fd
commit d930540165
1 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,8 @@ This repository has the following structure:
│ ├── basic.conf │ ├── basic.conf
│ ├── location/ │ ├── location/
│ └── .../ │ └── .../
├── custom.d/
│ └── .../
├── mime.types ├── mime.types
└── nginx.conf └── nginx.conf
``` ```
@ -98,6 +100,13 @@ This repository has the following structure:
Files in this folder contain one or more `location` directives. They are intended Files in this folder contain one or more `location` directives. They are intended
to be loaded in the `server` context (or, in a nested `location` block). to be loaded in the `server` context (or, in a nested `location` block).
* **`custom.d/`**
This directory should contain all the custom `nginx.conf` configuration.
Except if they are dot prefixed or non `.conf` extension, all files in this
folder **are** [loaded](https://github.com/h5bp/server-configs-nginx/blob/fbdaa3f867f3c8e1926df6bfe5943bfe57926ef5/nginx.conf#L53) automatically.
* **`mime.types`** * **`mime.types`**
The mime.types file is responsible for mapping file extensions to mime types. The mime.types file is responsible for mapping file extensions to mime types.