Apache - Webdav

Résolu/Fermé
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010 - 16 oct. 2009 à 10:53
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010 - 20 oct. 2009 à 10:03
Bonjour,

Je suis sous Solaris 10 et je dois mettre en place Webdav.
J'ai installé Apache2.

Je me suis créé un site de test qui fonctionne bien :
DavLockDB "/usr/local/apache2/var/DavLock"

Alias /test/ "/usr/local/apache2/sites/test/"
<Directory "/usr/local/apache2/sites/test">
        Dav On
        Options Indexes
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>


Par contre Webdav ne fonctionne pas. J'ai lu que le plus fiable pour créer un mappage était d'utiliser Word parcequ'avec l'outil windows il y avait un bug.

Donc sur Word je fais ouvrir et je saisis mon site : http://sunos020/test/
Je vois bien mon site mais lorsque je ferme Word il ne me fais pas le mappage.

Voici mon log access_log :
10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "GET /_vti_inf.html HTTP/1.1" 404 211
10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 225
10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "OPTIONS / HTTP/1.1" 200 -
10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "OPTIONS /test HTTP/1.1" 200 -
10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "GET /_vti_inf.html HTTP/1.1" 404 211
10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 225
10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "OPTIONS / HTTP/1.1" 200 -
10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "OPTIONS /test HTTP/1.1" 200 -
10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "GET /test/ HTTP/1.1" 200 254


Et mon log erreur_log :
[Fri Oct 16 10:40:19 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/htdocs/_vti_inf.html
[Fri Oct 16 10:40:19 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/htdocs/_vti_bin


Si j'utilise l'outil windows "Ajouter un site réseau", une authentification m'est demandé. Je ne sais pas quoi mettre, aucun login, mot de passe ne fonctionne. Surtout que je ne veux pas d'authentification.

Si vous pouvez m'aider, je suis complètement bloqué svp ?

Merci d'avance

6 réponses

Bonjour,

Ben déjà votre config et votre fichier de log ne donnent pas les mêmes dossiers :
/usr/local/apache2/sites/test/ et /usr/local/apache2/htdocs/

Revoyez la cohérence de vos fichiers de config.
0
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010
16 oct. 2009 à 11:21
Merci de cette réponse rapide.
J'ai testé de changer mon DocumentRoot en DocumentRoot "/usr/local/apache2/sites"

Maintenant il me crée bien mon mappage par contre je ne peux absolument rien faire sur cet espace :(

voici mes acces au dossier du site qui est dans apache2/sites/test/ :
Pour le répertoire sites :
drwxrwxrwx   3 nobody   nobody       512 Oct 15 16:01 sites


et pour le répertoire test :
drwxrwxrwx   2 nobody   nobody       512 Oct 16 10:08 test


Mon log access_log :
10.10.195.84 - - [16/Oct/2009:11:18:17 +0200] "PROPFIND /test HTTP/1.1" 301 229
10.10.195.84 - - [16/Oct/2009:11:18:17 +0200] "PROPFIND /test HTTP/1.1" 301 229
10.10.195.84 - - [16/Oct/2009:11:18:17 +0200] "PROPFIND /test/ HTTP/1.1" 207 1733
10.10.195.84 - - [16/Oct/2009:11:18:17 +0200] "PROPFIND /test HTTP/1.1" 301 229
10.10.195.84 - - [16/Oct/2009:11:18:19 +0200] "HEAD /test/New%20Folder HTTP/1.1" 404 -
10.10.195.84 - - [16/Oct/2009:11:18:19 +0200] "MKCOL /test/New%20Folder HTTP/1.1" 500 535


et erreur_log :
[Fri Oct 16 11:18:19 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/sites/test/New Folder
[Fri Oct 16 11:18:19 2009] [error] [client 10.10.195.84] The locks could not be queried for verification against a possible "If:" header.  [500, #0]
[Fri Oct 16 11:18:19 2009] [error] [client 10.10.195.84] Could not open the lock database.  [500, #400]
[Fri Oct 16 11:18:19 2009] [error] [client 10.10.195.84] (13)Permission denied: Could not open property database.  [500, #1]


Il me met File does not exist alors que justement je veux le créer...
0
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010
16 oct. 2009 à 14:27
J'ai avancé, j'ai mis les droits chmod -R 777 /usr/local/apache2/var
Par contre maintenant je peux ajouter, ouvrir un fichier et un répertoire. Par contre je ne peux pas les supprimer ni les renommer.

Voici comment j'ai modifié mon fichier de conf.
DAVLockDB "/usr/local/apache2/var/DavLock"

Alias /Test/ "/usr/local/apache2/sites/test/"
<Directory "/usr/local/apache2/sites/test">
        Dav On
        Options Indexes
        AllowOverride None
        Order allow,deny
        Allow from all
        AuthName "Administration site Site 1."
        AuthType Basic
        AuthUserFile /usr/local/apache2/var/htpasswd-webdav
        #<Limit GET POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        #        Require valid-user
        #</Limit>
</Directory>


Dans mon acces_log j'ai ca :
10.10.195.84 - test [16/Oct/2009:14:16:00 +0200] "GET /test/body.php HTTP/1.1" 200 214
10.10.195.84 - - [16/Oct/2009:14:17:49 +0200] "PROPFIND /test HTTP/1.1" 301 229
10.10.195.84 - - [16/Oct/2009:14:17:52 +0200] "HEAD /test/New%20Folder HTTP/1.1" 404 -
10.10.195.84 - - [16/Oct/2009:14:17:52 +0200] "MKCOL /test/New%20Folder HTTP/1.1" 201 190
10.10.195.84 - - [16/Oct/2009:14:17:55 +0200] "MOVE /test/New%20Folder HTTP/1.1" 301 242
10.10.195.84 - - [16/Oct/2009:14:18:05 +0200] "DELETE /test/New%20Folder HTTP/1.1" 301 242


et dans mon error_log :
[Fri Oct 16 14:17:39 2009] [notice] caught SIGTERM, shutting down
[Fri Oct 16 14:17:44 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Oct 16 14:17:46 2009] [notice] Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 configured -- resuming normal operations
[Fri Oct 16 14:17:52 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/sites/test/New Folder


Qu'est ce que ca signifie ?

Le fichier et dossier rajouté apparaissent comme ca :
drwxr-xr-x   2 daemon   daemon       512 Oct 16 14:17 New Folder
-rw-r--r--   1 daemon   daemon       214 Oct 16 14:14 body.php


Vous voyez un truc qui cloche ? Est-ce normal que se soit daemon ? et des droits si faibles ?
Comment changer ca ?
0
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010
16 oct. 2009 à 16:59
Voici mon httpd.conf simplifié au maximum. Toujours cette erreur 301.
Je nage complet :'( Si vous arrivez à me débloquer.

ServerRoot "/usr/local/apache2"
Listen 80

<IfModule !mpm_netware_module>
        <IfModule !mpm_winnt_module>
                User daemon
                Group daemon
        </IfModule>
</IfModule>

ServerAdmin you@example.com
DocumentRoot "/usr/local/apache2/sites"

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
</Directory>

<Directory "/usr/local/apache2/htdocs">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

DAVLockDB "/usr/local/apache2/var/DavLock"
#Alias /webdav/ "/usr/local/apache2/sites/test/"
<Directory "/usr/local/apache2/sites/test">
        Dav On
        #Options Indexes FollowSymLinks
        #AllowOverride None
        #Order allow,deny
        Allow from all
        AuthName "Administration site Site 1."
        AuthType Basic
        AuthUserFile /usr/local/apache2/var/htpasswd-webdav
        <Limit GET POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
                Require user test
        </Limit>
</Directory>

<IfModule dir_module>
        DirectoryIndex index.html
</IfModule>

<FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
</FilesMatch>

ErrorLog "logs/error_log"
LogLevel warn

<IfModule log_config_module>
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
        <IfModule logio_module>
              LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>
        CustomLog "logs/access_log" common
</IfModule>

<IfModule alias_module>
        ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "/usr/local/apache2/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
        TypesConfig conf/mime.types
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
</IfModule>

<IfModule ssl_module>
        SSLRandomSeed startup builtin
        SSLRandomSeed connect builtin
</IfModule>
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010
19 oct. 2009 à 09:16
Personne n'a d'idées ?
Je suis complètement perdu !!! :'(
0
lostrailler Messages postés 10 Date d'inscription vendredi 16 octobre 2009 Statut Membre Dernière intervention 29 septembre 2010
20 oct. 2009 à 10:03
Au cas où ca intéresse des personnes, je viens de trouver, j'ai testé avec un client RedHat et ca fonctionne parfaitement.
J'ai approfondi mes recherches sur ce point et en fait c'est un bug de windows, en utilisant un petit outil qui s'appelle Net Drive le problème est résolu.

Le soucis vient apparement du fait qu'il s'embrouille entre fichier et dossier avec le / de la fin.

Je vais essayer de résoudre ce soucis. Mais je suis rassuré mon serveur fonctionne bien.

Si quelqu'un sait maintenant comment résoudre ce tout petit soucis ? C'est dommage de devoir utiliser un outil.
0