HowtoApache : example d'utilisation de webdav
This commit is contained in:
parent
d2bea82156
commit
cdf9658023
|
@ -496,6 +496,44 @@ RewriteRule ^(.*)$ https://www.example.fr$1 [R,L]
|
|||
La documentation complète du module est là
|
||||
Pour plus d'info, il y a la [documentation complète du module](https://dev.maxmind.com/geoip/legacy/mod_geoip2/)
|
||||
|
||||
### mod_davfs
|
||||
|
||||
Ce module permet de prendre en charge WebDAV.
|
||||
|
||||
Pour l'activer :
|
||||
|
||||
~~~
|
||||
# a2enmod davfs
|
||||
~~~
|
||||
|
||||
Ensuite pour activer le module, il suffit de rajouter `Dav On` dans le virtualhost voulu.
|
||||
|
||||
Exemple de vhost :
|
||||
|
||||
~~~
|
||||
<VirtualHost *:443>
|
||||
|
||||
ServerName dav.example.com
|
||||
|
||||
DocumentRoot /home/webdav/
|
||||
<Directory "/home/webdav/">
|
||||
Dav On
|
||||
|
||||
AuthType Basic
|
||||
AuthName DAV
|
||||
AuthUserFile "/etc/apache2/webdav.htpasswd"
|
||||
Require valid-user
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/dav_error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/dav_access.log combined
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
|
||||
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
|
||||
</VirtualHost>
|
||||
~~~
|
||||
|
||||
## Authentification HTTP
|
||||
|
||||
### HTTP Basic Authentication (mod_auth_basic)
|
||||
|
|
Loading…
Reference in a new issue