mirror of
https://github.com/apache/httpd.git
synced 2025-08-01 16:41:19 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user