issue198:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue198:c_c [2023/10/30 15:17] – auntiee | issue198:c_c [2023/11/01 16:24] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
where “domain” is the name and “google.com” is the value, or “distribution” is the name and “Ubuntu” is the value.** | where “domain” is the name and “google.com” is the value, or “distribution” is the name and “Ubuntu” is the value.** | ||
- | Bon. Après que mon relecteur | + | Bon. Après que mon relecteur |
- | Alors que cet article se voulait être une vue d' | + | Alors que cet article se voulait être une vue d' |
- | La première chose que vous rencontrerez sera des directives et du « context ». Les directives sont des options spécifiques qui sont réglées dans le fichier de configuration (pas comme les directives arborescentes des robots dans les histoires d' | + | La première chose que vous rencontrerez sera des directives et du « context ». Les directives sont des options spécifiques qui sont réglées dans le fichier de configuration (pas comme les directives arborescentes des robots dans les histoires d' |
domain: google.com | domain: google.com | ||
Ligne 35: | Ligne 35: | ||
If it still is not clear, please send a message to misc@fullcirclemagazine.com** | If it still is not clear, please send a message to misc@fullcirclemagazine.com** | ||
- | Context est tout une section de la configuration qui contient des directives. Les directives dans la section | + | Context est toute une section de la configuration qui contient des directives. Les directives dans la section |
distribution: | distribution: | ||
- | puis dans un autre context « paragraphe », je peux mettre | + | puis dans un autre context « paragraphe », je peux mettre |
distribution: | distribution: | ||
Ligne 60: | Ligne 60: | ||
This is very important, it helps us not only read the documentation correctly, but it also helps us find where our directive should go (shown below).** | This is very important, it helps us not only read the documentation correctly, but it also helps us find where our directive should go (shown below).** | ||
- | If we look at the first example, we will find the context says it is in http, server and location, whereas merge_slashes is not found in “location”. Having it in a context where it does not belong, will mean it has no effect. If I have the above configuration in “location” context, it will not affect the “http” context even though they are both in the main context. | + | Le fichier principal de configuration se nomme le « main context ». Ne me posez pas de question, c'est pas moi qui a nommé ces choses. Le main context (alias le fichier config) contient des directives globales (alias paramètres) - ai-je besoin de parler de variables locales et globales ? Vous suivez le tutoriel de Python, n' |
+ | |||
+ | Comme j'ai dit auparavant, context peut être imbriqué. Je vais en souligner quelques-uns qui sont importants : ainsi à l' | ||
+ | |||
+ | Naviguez ici : | ||
+ | https:// | ||
+ | (voir l' | ||
+ | |||
+ | Vous voyez l' | ||
+ | |||
+ | C'est très important : il nous aide non seulement à lire la documentation comme il faut, mais aussi à trouver où on doit mettre notre directive (voir ci-dessous). | ||
+ | |||
+ | |||
+ | **If we look at the first example, we will find the context says it is in http, server and location, whereas merge_slashes is not found in “location”. Having it in a context where it does not belong, will mean it has no effect. If I have the above configuration in “location” context, it will not affect the “http” context even though they are both in the main context. | ||
+ | |||
+ | I hope this has cleared up some of the confusing bits in the series, so if I ever talk about context again while talking about web servers, I mean this ^^^, not some random context or in the context of the article. Have fun with your web servers! ** | ||
+ | |||
+ | Si nous examinons le premier exemple, nous verrons que le context dit qu'il se trouve dans http, server et location, alors que merge_slashes n'est pas trouvé dans « location ». S'il est placé dans un context impropre, cela signifiera qu'il n'aura aucun effet. Si j'ai la configuration ci-dessus dans le context « location », cela n' | ||
+ | |||
+ | J' | ||
- | I hope this has cleared up some of the confusing bits in the series, so if I ever talk about context again while talking about web servers, I mean this ^^^, not some random context or in the context of the article. Have fun with your web servers! |
issue198/c_c.1698675448.txt.gz · Dernière modification : 2023/10/30 15:17 de auntiee