Bonjour,
j'essaye en vain de faire fonctionner le serveur webdav :
J'ai ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
# Munki Web Admin
     Alias /static/ /usr/local/mwa2_env/munkiwebadmin/static/
   <Directory /usr/local/mwa2_env/munkiwebadmin/static>
      Order deny,allow
     Allow from all
        Require all granted
    </Directory>
 
    WSGIScriptAlias / /usr/local/mwa2_env/munkiwebadmin.wsgi
    <Directory /usr/local/mwa2_env>
        <Files munkiwebadmin.wsgi>
            Order allow,deny
            Allow from all
            Require all granted
        </Files>
    </Directory>
 
 
    <Directory /var/www/html/munki_repo/>
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        allow from all
        Require all granted
        #YD
        #Dav On
        #<LimitExcept GET OPTIONS>
        #Require all granted
        #</LimitExcept>
        # Fin YD
 
    </Directory>
et
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DAVLockDB ${APACHE_LOCK_DIR}/DAVLock
 
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Alias /munki_repo /var/www/html/munki_repo
<Location /munki_repo>
      DAV On
      SSLRequireSSL
      Options None
      AuthType Basic
      AuthName "Munki Repo"
      AuthUserFile /etc/apache2/htpasswd
      <LimitExcept GET OPTIONS>
              Order allow,deny
              Allow from all
              Require valid-user
      </LimitExcept>
</Location>
et
more /etc/apache2/htpasswd
yd:$apr1$G0AFwx6g$
et

root@lxc-munki2:/usr/local/mwa2_env/mwa2/munkiwebadmin# apachectl configtest ; service apache2 reload;cadaver https://lxc-munki2.site-lyon.fr/munki_repo
Syntax OK
[ ok ] Reloading Apache httpd web server: apache2.
Authentication required for Munki Repo on server `lxc-munki2.site-lyon.fr':
Username: yd
Password:
Could not access /munki_repo/ (not WebDAV-enabled?):
405 Method Not Allowed
Connection to `lxc-munki2.site-lyon.fr' closed.
dav:!>
et en local sur le serveur
yd [13/Mar/2024:15:54:08 +0100] "PROPFIND /munki_repo/ HTTP/1.1" 405 431 "-" "cadaver/0.23.3 neon/0.30.2"
et
Depuis un mac idem


ls -l /etc/apache2/htpasswd
-rw-r----- 1 root root 41 Mar 13 09:58 /etc/apache2/htpasswd
A priori Django est capable de fournir des fonctionnalités de WebDAV, mais ce n'est pas sa fonction principale ?

C'est utilisé à partir de Munki : je connais pas l'environnement MAC ! Pour cette raison je teste avec client webdav cadaver ou Windows

En fait je pense que le service webdav fonctionne sinon je n'aurai pas le login ?
Mais comment vérifier si le service fonctionne ?
et où se trouve le lien avec django ?

Merci pour votre aide