Apache22DavLdap » Cronologia » Versione 1
Amministratore Truelite, 30-10-2007 10:22
| 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 | AuthName "Truelite Secret Music Repository" |
||
| 50 | 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 | }}} |