summaryrefslogtreecommitdiff
path: root/roles/sublab_web/templates/wiki.conf.j2
blob: 532833599ea937d66d5d2279f3bded7e3289a4e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Alias /wiki/ /home/wiki-{{ sublab_web_server_name }}/wiki-html/
<Directory /home/wiki-{{ sublab_web_server_name }}/wiki-html>
        AllowOverride None
        Require all granted
        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