-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.conf
32 lines (25 loc) · 929 Bytes
/
apache.conf
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
29
30
31
32
<VirtualHost *:8080>
Define path /var/www/webdav-server
ServerName webdav.club1.fr
ServerAdmin webmaster@club1.fr
DocumentRoot /var/www/html
<Location "/">
AuthName "Compte CLUB1"
AuthType Basic
AuthBasicProvider ldap anon
AuthLDAPUrl ldap://localhost/ou=People,dc=club1,dc=fr?uid
Anonymous anonymous
Anonymous_MustGiveEmail Off
Require valid-user
SetEnvIf AUTHENTICATE_UID "^" AUTHENTICATE_UID=anonymous
SetHandler "proxy:unix:/run/php/php-fpm.www-data.sock|fcgi://localhost${path}/server.php"
</Location>
<Location "/files">
AuthBasicProvider ldap
ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=/"
SetHandler "proxy:unix:/run/php/php-fpm.%{env:AUTHENTICATE_UID}.sock|fcgi://localhost${path}/fileserver.php"
</Location>
ErrorLog ${APACHE_LOG_DIR}/webdav_error.log
CustomLog ${APACHE_LOG_DIR}/webdav_access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet