|
1 | 1 | .. _nginx configuration: |
2 | 2 |
|
3 | | -Nginx Configuration |
| 3 | +NGINX Configuration |
4 | 4 | ------------------- |
5 | 5 |
|
6 | | -Below you will find detailed Nginx configuration recommendations for the |
7 | | -features provided by this library. The examples are tested with Nginx version |
| 6 | +Below you will find detailed NGINX configuration recommendations for the |
| 7 | +features provided by this library. The examples are tested with NGINX version |
8 | 8 | 1.4.6. |
9 | 9 |
|
10 | | -Nginx cache is a set of key/value pairs. The key is built with elements taken from the requests |
| 10 | +NGINX cache is a set of key/value pairs. The key is built with elements taken from the requests |
11 | 11 | (URI, cookies, http headers etc) as specified by `proxy_cache_key` directive. |
12 | 12 |
|
13 | | -When we interact with the cache to purge/refresh entries we must send to Nginx a request which has |
| 13 | +When we interact with the cache to purge/refresh entries we must send to NGINX a request which has |
14 | 14 | the very same values, for the elements used for building the key, as the request that create the entry. |
15 | | -In this way Nginx can build the correct key and apply the required operation to the entry. |
| 15 | +In this way NGINX can build the correct key and apply the required operation to the entry. |
16 | 16 |
|
17 | | -By default Nginx key is built with `$scheme$proxy_host$request_uri`. For a full list of the elements |
| 17 | +By default NGINX key is built with `$scheme$proxy_host$request_uri`. For a full list of the elements |
18 | 18 | you can use in the key see `this page from the official documentation <http://nginx.org/en/docs/http/ngx_http_core_module.html#variables>`_ |
19 | 19 |
|
20 | 20 | Purge |
21 | 21 | ~~~~~ |
22 | 22 |
|
23 | | -Nginx does not support :term:`purge` functionality out of the box but you can easily add it with |
| 23 | +NGINX does not support :term:`purge` functionality out of the box but you can easily add it with |
24 | 24 | `ngx_cache_purge <https://github.com/FRiCKLE/ngx_cache_purge>`_ module. You just need to compile |
25 | | -Nginx from sources adding `ngx_cache_purge` with `--add-module` |
| 25 | +NGINX from sources adding `ngx_cache_purge` with `--add-module` |
26 | 26 |
|
27 | 27 | You can check the script :source:`install-nginx.sh <tests/install-nginx.sh>` to get an idea |
28 | 28 | about the steps you need to perform. |
29 | 29 |
|
30 | | -Then configure Nginx for purge requests: |
| 30 | +Then configure NGINX for purge requests: |
31 | 31 |
|
32 | 32 | .. literalinclude:: ../tests/Functional/Fixtures/nginx/fos.conf |
33 | 33 | :language: nginx |
34 | 34 | :linenos: |
35 | 35 | :emphasize-lines: 41, 47-53 |
36 | 36 |
|
37 | 37 | Please refer to the `ngx_cache_purge module documentation <https://github.com/FRiCKLE/ngx_cache_purge>`_ |
38 | | -for more on configuring Nginx to support purge requests. |
| 38 | +for more on configuring NGINX to support purge requests. |
39 | 39 |
|
40 | 40 | Refresh |
41 | 41 | ~~~~~~~ |
|
0 commit comments