Nginx: Difference between revisions

imported>Pyrox0
commonHttpConfig -> appendHttpConfig
imported>Pyrox0
Update syntax highlighting for all non-highlighted blocls
Line 73: Line 73:


A common example found on the internet is:
A common example found on the internet is:
<syntaxHighlight>
<syntaxHighlight lang="nix">
locations."~ ^(.+\.php)(.*)$"  = {
locations."~ ^(.+\.php)(.*)$"  = {
     ...
     ...
Line 82: Line 82:


To circumvent this error <code>\.php</code> has to be double escaped as <code>\\.php</code>
To circumvent this error <code>\.php</code> has to be double escaped as <code>\\.php</code>
<syntaxHighlight>
<syntaxHighlight lang="nix">
locations."~ ^(.+\\.php)(.*)$"  = {
locations."~ ^(.+\\.php)(.*)$"  = {
     ...
     ...