Progetto

Generale

Profilo

Apache22DavLdap » Cronologia » Versione 3

Amministratore Truelite, 30-10-2007 13:13

1 1 Amministratore Truelite
== Apache2.2 Webdav Ldap ==
2
3
{{{
4
NameVirtualHost *
5
                LDAPTrustedMode SSL
6
                LDAPVerifyServerCert Off
7
<VirtualHost *>
8
        ServerAdmin webmaster@truelite.it
9
10
        DocumentRoot /data/music
11
        <Directory />
12
                Options FollowSymLinks
13
                AllowOverride None
14
        </Directory>
15
        <Directory /data/music/>
16
                Options Indexes FollowSymLinks MultiViews
17
                AllowOverride None
18
                Order allow,deny
19
                allow from all
20
                # This directive allows us to have apache2's default start page
21
                # in /apache2-default/, but still have / go to the right place
22
                #RedirectMatch ^/$ /apache2-default/
23
        </Directory>
24
25
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
26
        <Directory "/usr/lib/cgi-bin">
27
                AllowOverride None
28
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
29
                Order allow,deny
30
                Allow from all
31
        </Directory>
32
33
        ErrorLog /var/log/apache2/error.log
34
35
        # Possible values include: debug, info, notice, warn, error, crit,
36
        # alert, emerg.
37
        LogLevel warn
38
39
        CustomLog /var/log/apache2/access.log combined
40
        ServerSignature On
41
42
43
        # Note Alias goes to our DocumentRoot.
44
        Alias /webdav /data/music/
45
46
        # But we apply different settings
47
        <Location /webdav>
48
                DAV On
49 2 Amministratore Truelite
                AuthName "Truelite"
50 1 Amministratore Truelite
                AuthType Basic
51
                AuthBasicProvider ldap
52
                AuthLDAPURL ldaps://ldap.fi.trl/ou=People,dc=truelite,dc=it?uid
53
                AuthzLDAPAuthoritative Off
54
                require valid-user
55
        </Location>
56
57
</VirtualHost>
58
59
}}}
60 3 Amministratore Truelite
61
AuthzLDAPAuthoritative Directive
62
Description:	Prevent other authentication modules from authenticating the user if this one fails