1

I have multiple VirtualHosts and some of them require authorization. I have one config that I include in those hosts that handles basic authentication. I would like apache to lookup group based on server name I've tried

Require ldap-group cn=%{SERVER_NAME},ou=Groups,dc=example,dc=com

but unfortunately the variable is not resolved. Any tips?

Buri
  • 61

1 Answers1

1

The answer is spaces between identifiers, so

Require ldap-group cn=%{SERVER_NAME}, ou=Groups, dc=example, dc=com

See example 5 in the official documentation

Buri
  • 61