httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57506] <If> directive doesn't work within a <Location> section
Date Thu, 02 Mar 2017 15:55:09 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=57506

--- Comment #1 from Luca Toscano <toscano.luca@gmail.com> ---
I found this report while looking for open issues with <If>, but the following
configuration works for me:

# Nothing listening on localhost:6789

<Location /app2>
        Require local
        ProxyPass http://localhost:6789/
        ProxyPassReverse http://localhost:6789/
        <If "true">
          ErrorDocument 503 "This is a custom 503!!!!"
        </If>
</Location>

<Location /app3>
        Require local
        ProxyPass http://localhost:6789/
        ProxyPassReverse http://localhost:6789/
</Location>

# curl localhost/app2
This is a custom 503!!!!

# curl localhost/app3
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>


Maybe it is something specific to AuthLDAPBindDN? Are you still facing the
issue? The configuration in the paste is expired..

-- 
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


Mime
View raw message