Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleSample Location directive with LDAP
<Location /olefs>
                  Order Allow,Deny
                  Allow from all

                  AuthType Basic
                  AuthName #<To be filled>
                  AuthzLDAPAuthoritative  off
                  AuthLDAPURL             #<To be filled>
                  AuthBasicProvider       ldap file
                  AuthUserFile        /var/www/olehome/.htpasswd
                  require valid-user

                  ProxyPass http://oletest.lib.lehigh.edu:8443/olefs
                  ProxyPassReverse http://oletest.lib.lehigh.edu:8443/
 
                  RequestHeader set Remote-User %{REMOTE_USER}s
</Location>

 

Version related issues

 

Info
Apache versions prior to Apache 2.4.4 cannot forward PATCH requests via the AJP protocol, which can interfere with some of OLE's APIs.

If you are experiencing HTTP 501 ("Method Not Implemented") errors, this may be the cause.  Check your Apache version and error logs for messages such as "ajp_marshal_into_msgb - No such method PATCH".

 

Possible fixes:

 

1. Use mod_proxy_http instead of mod_proxy_ajp in your proxy setup.

 

2. Use at least Apache 2.4.4 with mod_proxy_ajp

 

3. (Unverified) Use mod_jk instead of mod_proxy_ajp