summaryrefslogtreecommitdiff
path: root/roles/sublab_web/templates/wiki.conf.j2
blob: a5c47ba5394b36489f55b3c92a6c75b10544bd74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>
#
#  Disable LDAP auth for now :/
#
#        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

#  And use basic auth instead
        AuthType basic
        AuthName "Wiki Login"
        AuthUserFile "/etc/apache2/sites/{{ sublab_web_server_name }}/htpasswd"
        Require valid-user
</Directory>
LDAPTrustedMode TLS