Add syntax highlight + change separator in regex (# --> |) in order to please syntax highlighting engine

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1782508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christophe Jaillet
2017-02-10 19:32:06 +00:00
parent 5231ec6ed2
commit 545d85acda

View File

@ -273,14 +273,16 @@ If omitted, the variable is set to an empty string.</dd>
</dl>
<example>
# A basic, unconditional override<br/>
ProxyFCGISetEnvIf "true" PATH_INFO "/example"<br/>
<br/>
# Use an environment variable in the value<br/>
ProxyFCGISetEnvIf "true" PATH_INFO "%{reqenv:SCRIPT_NAME}"<br/>
<br/>
# Use captures in the conditions and backreferences in the replacement<br/>
ProxyFCGISetEnvIf "reqenv('PATH_TRANSLATED') =~ m#(/.*prefix)(\d+)(.*)#" PATH_TRANSLATED "$1$3"<br/>
<highlight language="config">
# A basic, unconditional override
ProxyFCGISetEnvIf "true" PATH_INFO "/example"
# Use an environment variable in the value
ProxyFCGISetEnvIf "true" PATH_INFO "%{reqenv:SCRIPT_NAME}"
# Use captures in the conditions and backreferences in the replacement
ProxyFCGISetEnvIf "reqenv('PATH_TRANSLATED') =~ m|(/.*prefix)(\d+)(.*)|" PATH_TRANSLATED "$1$3"
</highlight>
</example>
</usage>