Fixed nginx configurations syntax highlighting

This commit is contained in:
Julien Dessaux 2021-04-16 17:43:25 +02:00
parent 51de93e5b6
commit 88b281ef55
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ tags:
## How to ## How to
{{< highlight sh >}} {{< highlight nginx >}}
ldap_server ldap { ldap_server ldap {
auth_ldap_cache_enabled on; auth_ldap_cache_enabled on;
auth_ldap_cache_expiration_time 10000; auth_ldap_cache_expiration_time 10000;

View file

@ -13,7 +13,7 @@ Today I was called in escalation to debug why a set of rewrites was suddenly mis
## Outside a location block ## Outside a location block
When used outside a location block, these keywords stop the rules evaluation and then evaluate to a location. Consider the following example : When used outside a location block, these keywords stop the rules evaluation and then evaluate to a location. Consider the following example :
{{< highlight conf >}} {{< highlight nginx >}}
server { server {
[...] [...]
location / { location / {
@ -48,7 +48,7 @@ configs # we hit the rewrite to /configs/test.cfg, which is then reevaluated an
When used inside a location block a rewrite rule flagged last will eventually trigger a location change (it is reevaluated based on the new url) but this does not happen when break is used. When used inside a location block a rewrite rule flagged last will eventually trigger a location change (it is reevaluated based on the new url) but this does not happen when break is used.
Consider the following example : Consider the following example :
{{< highlight conf >}} {{< highlight nginx >}}
server { server {
[...] [...]
location / { location / {