https://issues.apache.org/bugzilla/show_bug.cgi?id=57311
Bug ID: 57311
Summary: BalancerMember enclosed by <If> gives syntax error
Product: Apache httpd-2
Version: 2.4.10
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy
Assignee: [email protected]
Reporter: [email protected]
When the following code is in httpd.conf:
<VirtualHost *:${SOAP_PORT_STD}>
ErrorLog ${ROOT}/logs/soapd.log
SSLEngine Off
KeepAlive Off
ProxyPass / balancer://cluster:8080/
ProxyPassReverse / balancer://cluster:8080/
<Proxy balancer://cluster>
BalancerMember http://${SERVER_ADDR1}:8080/ timeout=55 retry=10 max=250
<If "osenv('SERVER_ADDR2') != ''">
<If "osenv('SERVER_MODE') =~ /^ordered$/">
BalancerMember http://${SERVER_ADDR2}:8080/ status=+H timeout=55
retry=10 max=250
</If>
<Else>
BalancerMember http://${SERVER_ADDR2}:8080/ timeout=55 retry=10 max=250
</Else>
</If>
</Proxy>
</VirtualHost>
I get the following error:
AH00526: Syntax error on line 456 of /opt/gobbledygook/lib/httpd.conf:
BalancerMember Bad syntax for a balancer name
Line 456 refers to the following:
BalancerMember http://${SERVER_ADDR2}:8080/ status=+H timeout=55 retry=10
max=250
I tried replacing the line with simpler ones, such as:
BalancerMember http://10.0.0.1/
but still the same error. A line such as:
SetOutputFilter INCLUDES
instead will raise no error, though.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]