https://issues.apache.org/bugzilla/show_bug.cgi?id=57506

            Bug ID: 57506
           Summary: <If> directive doesn't work within a <Location>
                    section
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 32402
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32402&action=edit
Config file demonstrating problem

I'm trying to embed an <If> directive within a <Location> section, but the
settings within the <If> block are never applied. Here's my configuration
snippet:

<VirtualHost *>
  ...
  <Location />
    ...
    <If "true">
      AuthLDAPBindDN "${AUTH_LDAP_BIND_DN}"
    </If>
    ...
  </Location>
</VirtualHost>

The full config file is at http://apaste.info/sXu and attached. If I run the
server at trace8, I see the following in the log:

Evaluation of expression from /etc/apache2/sites-enabled/reg-proxy.conf:27
gave: 1

I interpret this to mean that the condition evaluated to true, but the
AuthLDAPBindDN setting is not applied. If I comment out the <If> lines, it
works fine.

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

Reply via email to