summaryrefslogtreecommitdiff
path: root/roles/sublab_web/templates/wiki.conf.j2
blob: 90a2f1d00ff101f4122e6d3ce04fc9b063f2ec2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Alias /wiki/ /home/wiki-{{ sublab_web_server_name }}/wiki-html/
<Directory /home/wiki-{{ sublab_web_server_name }}/wiki-html>
        AllowOverride None
        Order allow,deny
        allow from all
        AddHandler cgi-script .cgi
        Options +ExecCGI
</Directory>
<Directory /home/wiki-{{ sublab_web_server_name }}/wiki-html/auth>
        AuthType basic
        AuthBasicProvider ldap
        AuthName "LDAP Login"
        AuthLDAPBindDN "cn=apache-{{ ansible_nodename }},ou=service,dc=sublab,dc=org"
        AuthLDAPBindPassword "{{ ldap_credentials["apache-" + ansible_nodename] }}"
        AuthLDAPURL "{{ ldap_url }}/ou=people,dc=sublab,dc=org"
        # AuthzLDAPAuthoritative on
        # Require ldap-group cn=members,ou=groups,dc=sublab,dc=org
        Require valid-user
</Directory>
LDAPTrustedMode TLS