You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/12/04 18:10:35 UTC
[Bug 57311] New: BalancerMember enclosed by gives syntax error
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: bugs@httpd.apache.org
Reporter: spyridon.gouliarmis@rcdevs.com
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 57311] BalancerMember enclosed by gives syntax error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57311
--- Comment #2 from Eric Covener <co...@gmail.com> ---
I don't think BalancerMember is designed to be used outside of (plain) Location
and <Proxy> configuration sections. Will leave PR open a few days.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 57311] BalancerMember enclosed by gives syntax error
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57311
--- Comment #1 from Spyridon Gouliarmis <sp...@rcdevs.com> ---
(I mean I get the error on Apache startup.)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org