Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2445 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Pb Configuration Webdav sur Apache2

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Pb Configuration Webdav sur Apache2

n°1171788
mxf_fly
Posté le 14-10-2009 à 14:08:17  profilanswer
 

Bonjour à tous,
 
Un ancien sujet sur le forum traite de webdav mais ne réponds pas à mon problème.
 
Je suis sous Solaris 10 et je dois mettre en place Webdav.
J'ai installé Apache2 avec les packages fournis (SUNWapch2r, SUNWapch2u, SUNWapch2d).
 
Je me suis créé un site de test qui fonctionne parfaitement :

Code :
  1. Alias /test/ "/usr/apache2/test/"
  2. <Directory "/usr/apache2/test/">
  3. </Directory>


 
J'ai ensuite voulu rajouter l'accès via Webdav, voici les lignes de mon fichier httpd.conf :

Code :
  1. LoadModule dav_module libexec/mod_dav.so
  2. LoadModule dav_fs_module libexec/mod_dav_fs.so
  3. DAVLockDB /var/lock/DavLock
  4. Alias /test/ "/usr/apache2/test/"
  5. <Directory "/usr/apache2/test/">
  6.    DAV On
  7. </Directory>


 
Pour le moment je veux juste pouvoir y accéder sans faire d'authentification, rien.
Le répertoire /var/lock/DavLock est en accès 777 tout comme /usr/apache2/test/
 
Et quand j'utilise IE pour y accéder en web folder via l'adresse http://monserveur/test/, une authentification m'est demandé et impossible d'y accéder.
 
Est-ce que quelqu'un voit d'où peut provenir le problème ? Je suis complètement bloqué. Celà parait pourtant si simple.
Merci d'avance.


Message édité par mxf_fly le 14-10-2009 à 14:46:51
mood
Publicité
Posté le 14-10-2009 à 14:08:17  profilanswer
 

n°1171791
fighting_f​alcon
Posté le 14-10-2009 à 14:17:18  profilanswer
 

les logs ils disent quoi ?

n°1171794
mxf_fly
Posté le 14-10-2009 à 14:23:30  profilanswer
 

Le fichier access_log me dit :
 

Code :
  1. 10.10.195.84 - - [14/Oct/2009:14:20:20 +0200] "PROPFIND /test HTTP/1.1" 405 308
  2. 10.10.195.84 - - [14/Oct/2009:14:20:20 +0200] "PROPFIND /test HTTP/1.1" 405 308
  3. 10.10.195.84 - - [14/Oct/2009:14:20:20 +0200] "OPTIONS / HTTP/1.1" 200 -
  4. 10.10.195.84 - - [14/Oct/2009:14:20:20 +0200] "PROPFIND /test HTTP/1.1" 405 308
  5. 10.10.195.84 - - [14/Oct/2009:14:20:23 +0200] "GET /_vti_inf.html HTTP/1.1" 404 289
  6. 10.10.195.84 - - [14/Oct/2009:14:20:23 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 303
  7. 10.10.195.84 - - [14/Oct/2009:14:20:23 +0200] "OPTIONS / HTTP/1.1" 200 -
  8. 10.10.195.84 - - [14/Oct/2009:14:20:23 +0200] "OPTIONS /test HTTP/1.1" 200 -


 
et le fichier error_log :
 

Code :
  1. [Wed Oct 14 14:20:23 2009] [error] [client 10.10.195.84] File does not exist: /var/apache2/htdocs/_vti_inf.html
  2. [Wed Oct 14 14:20:23 2009] [error] [client 10.10.195.84] File does not exist: /var/apache2/htdocs/_vti_bin


 
C'est quoi les 2 fichier _vti_ ?

n°1171873
fighting_f​alcon
Posté le 14-10-2009 à 16:56:12  profilanswer
 

http://support.microsoft.com/kb/828909
 
et sinon :

Citation :

10.10.195.84 - - [14/Oct/2009:14:20:20 +0200] "PROPFIND /test HTTP/1.1" 405 308


 
405 ==> "Method not allowed"

n°1172001
mxf_fly
Posté le 15-10-2009 à 10:39:00  profilanswer
 

Ok, bon je vais essayer de réinstaller apache en le recompilant comme il faut.
 
Merci de ton aide, je vous tiens au courant.

n°1172301
mxf_fly
Posté le 16-10-2009 à 10:43:10  profilanswer
 

Bien voila j'ai recompilé Apache, j'avance un peu plus mais ca ne marche toujours pas.
 
donc voici mon nouveau httpd.conf :
 

Code :
  1. DavLockDB "/usr/local/apache2/var/DavLock"
  2. Alias /test/ "/usr/local/apache2/sites/test/"
  3. <Directory "/usr/local/apache2/sites/test">
  4.         Dav On
  5.         Options Indexes
  6.         AllowOverride None
  7.         Order allow,deny
  8.         Allow from all
  9. </Directory>


 
J'ai mis tous les droits à 777 et voici mon log dans access_log :

Code :
  1. 10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "GET /_vti_inf.html HTTP/1.1" 404 211
  2. 10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 225
  3. 10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "OPTIONS / HTTP/1.1" 200 -
  4. 10.10.195.84 - - [16/Oct/2009:10:40:18 +0200] "OPTIONS /test HTTP/1.1" 200 -
  5. 10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "GET /_vti_inf.html HTTP/1.1" 404 211
  6. 10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 225
  7. 10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "OPTIONS / HTTP/1.1" 200 -
  8. 10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "OPTIONS /test HTTP/1.1" 200 -
  9. 10.10.195.84 - - [16/Oct/2009:10:40:19 +0200] "GET /test/ HTTP/1.1" 200 254


 
Et error_log :

Code :
  1. [Fri Oct 16 10:40:19 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/htdocs/_vti_inf.html
  2. [Fri Oct 16 10:40:19 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/htdocs/_vti_bin


 
Si vous pouvez m'aider svp ???

n°1172320
mxf_fly
Posté le 16-10-2009 à 12:02:36  profilanswer
 

J'avance encore, ce coup-ci mon mappage se fait bien.
J'avais mon DocumentRoot qui n'etait pas bon par contre maintenant je ne peux rien créer dedans :(
 
Mon access_log :

Code :
  1. 10.10.195.84 - - [16/Oct/2009:11:56:25 +0200] "PROPFIND /test HTTP/1.1" 301 229
  2. 10.10.195.84 - - [16/Oct/2009:11:56:25 +0200] "PROPFIND /test HTTP/1.1" 301 229
  3. 10.10.195.84 - - [16/Oct/2009:11:56:25 +0200] "PROPFIND /test/ HTTP/1.1" 207 1733
  4. 10.10.195.84 - - [16/Oct/2009:11:56:26 +0200] "PROPFIND /test HTTP/1.1" 301 229
  5. 10.10.195.84 - - [16/Oct/2009:11:56:29 +0200] "HEAD /test/New%20Folder HTTP/1.1" 404 -
  6. 10.10.195.84 - - [16/Oct/2009:11:56:29 +0200] "MKCOL /test/New%20Folder HTTP/1.1" 500 535


 
Mon erreur_log :

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


 
Une idée ? J'ai lu que ca pouvait venir du répertoire DavLock, mais le .dir et .pag se créent bien.
 
Je galère :(

n°1172358
kisscoolz
Posté le 16-10-2009 à 14:42:55  profilanswer
 

un ls -Al /usr/local/apache2/sites/test te donne quoi ?

n°1172403
mxf_fly
Posté le 16-10-2009 à 17:06:42  profilanswer
 

ca me donne ca :
 

Code :
  1. drwxrwxrwx   2 daemon   daemon       512 Oct 16 16:02 New Folder (2)
  2. drwxr-xr-x   2 daemon   daemon       512 Oct 16 16:15 New Folder (3)
  3. drwxr-xr-x   2 nobody   nobody       512 Oct 16 14:39 litmus
  4. -rwxr-xr-x   1 nobody   nobody         0 Oct 16 09:29 tests.txt


 
J'ai un petit peu avancé. Maintenant je peux créé des fichiers et répertoires.
Par contre je ne peux pas modifié un fichier mais je peux le supprimer.
Et je ne peux ni supprimer ni renommer un répertoire.
 
J'ai une erreur 301.
 
Voici mon httpd en entier simplifié au maximum :
 

Code :
  1. ServerRoot "/usr/local/apache2"
  2. Listen 80
  3. <IfModule !mpm_netware_module>
  4.         <IfModule !mpm_winnt_module>
  5.                 User daemon
  6.                 Group daemon
  7.         </IfModule>
  8. </IfModule>
  9. ServerAdmin you@example.com
  10. DocumentRoot "/usr/local/apache2/sites"
  11. <Directory />
  12.         Options FollowSymLinks
  13.         AllowOverride None
  14.         Order deny,allow
  15.         Deny from all
  16. </Directory>
  17. <Directory "/usr/local/apache2/htdocs">
  18.         Options Indexes FollowSymLinks
  19.         AllowOverride None
  20.         Order allow,deny
  21.         Allow from all
  22. </Directory>
  23. DAVLockDB "/usr/local/apache2/var/DavLock"
  24. #Alias /webdav/ "/usr/local/apache2/sites/test/"
  25. <Directory "/usr/local/apache2/sites/test">
  26.         Dav On
  27.         #Options Indexes FollowSymLinks
  28.         #AllowOverride None
  29.         #Order allow,deny
  30.         Allow from all
  31.         AuthName "Administration site Site 1."
  32.         AuthType Basic
  33.         AuthUserFile /usr/local/apache2/var/htpasswd-webdav
  34.         <Limit GET POST PROPFIND PUT DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
  35.                 Require user test
  36.         </Limit>
  37. </Directory>
  38. <IfModule dir_module>
  39.         DirectoryIndex index.html
  40. </IfModule>
  41. <FilesMatch "^\.ht">
  42.         Order allow,deny
  43.         Deny from all
  44.         Satisfy All
  45. </FilesMatch>
  46. ErrorLog "logs/error_log"
  47. LogLevel warn
  48. <IfModule log_config_module>
  49.         LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  50.         LogFormat "%h %l %u %t \"%r\" %>s %b" common
  51.         <IfModule logio_module>
  52.               LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  53.         </IfModule>
  54.         CustomLog "logs/access_log" common
  55. </IfModule>
  56. <IfModule alias_module>
  57.         ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
  58. </IfModule>
  59. <IfModule cgid_module>
  60. </IfModule>
  61. <Directory "/usr/local/apache2/cgi-bin">
  62.         AllowOverride None
  63.         Options None
  64.         Order allow,deny
  65.         Allow from all
  66. </Directory>
  67. DefaultType text/plain
  68. <IfModule mime_module>
  69.         TypesConfig conf/mime.types
  70.         AddType application/x-compress .Z
  71.         AddType application/x-gzip .gz .tgz
  72. </IfModule>
  73. <IfModule ssl_module>
  74.         SSLRandomSeed startup builtin
  75.         SSLRandomSeed connect builtin
  76. </IfModule>


 
Et mon access_log :

Code :
  1. 10.10.195.84 - test [16/Oct/2009:14:16:00 +0200] "GET /test/body.php HTTP/1.1" 200 214
  2. 10.10.195.84 - - [16/Oct/2009:14:17:49 +0200] "PROPFIND /test HTTP/1.1" 301 229
  3. 10.10.195.84 - - [16/Oct/2009:14:17:52 +0200] "HEAD /test/New%20Folder HTTP/1.1" 404 -
  4. 10.10.195.84 - - [16/Oct/2009:14:17:52 +0200] "MKCOL /test/New%20Folder HTTP/1.1" 201 190
  5. 10.10.195.84 - - [16/Oct/2009:14:17:55 +0200] "MOVE /test/New%20Folder HTTP/1.1" 301 242
  6. 10.10.195.84 - - [16/Oct/2009:14:18:05 +0200] "DELETE /test/New%20Folder HTTP/1.1" 301 242


 
Et mon error_log :

Code :
  1. [Fri Oct 16 14:17:39 2009] [notice] caught SIGTERM, shutting down
  2. [Fri Oct 16 14:17:44 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
  3. [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
  4. [Fri Oct 16 14:17:52 2009] [error] [client 10.10.195.84] File does not exist: /usr/local/apache2/sites/test/New Folder


n°1172445
kisscoolz
Posté le 16-10-2009 à 21:16:04  profilanswer
 

Je me trompe surement mais les fichiers créés ne devraient ils pas avoir en propriétaire et groupe ceux utilisés par le serveur apache ? A moins que ton apache tourne avec le user nobody ou deamon ?  
 
je pensais a un probleme de drois sur tes fichiers pour le probleme precedent mais visiblement t'as trouver la solution.

mood
Publicité
Posté le 16-10-2009 à 21:16:04  profilanswer
 

n°1172777
mxf_fly
Posté le 19-10-2009 à 08:53:05  profilanswer
 

Merci de ta réponse rapide et désolé pour cette réponse tardive, week-end oblige ;)
Je vais voir ca de suite et je vous tiens au courant.

n°1172786
mxf_fly
Posté le 19-10-2009 à 09:12:39  profilanswer
 

Ca ne fonctionne pas, j'ai mis
chown -R apache:gapache test/
 
Je crée un répertoire et je le vois appartenant à daemon:daemon. C'est normal ? Et pareil impossible de modifier ou supprimer les autres dossiers.
 
Je suis perdu

n°1172838
fighting_f​alcon
Posté le 19-10-2009 à 11:00:28  profilanswer
 

ton apache il tourne sous quel compte ?

n°1173123
mxf_fly
Posté le 20-10-2009 à 09:45:17  profilanswer
 

il tourne sous daemon.
Mais c'est bon 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.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Pb Configuration Webdav sur Apache2

 

Sujets relatifs
Pb installations CB 1.2 sous Joomla 1.5Configuration de Samba
apache2, user et droitsPb installation Slitaz
[DEBIAN] Apache2 , vhosts hs depuis la mise a jour...[RESOLU]Connaitre la configuration de la carte réseau (Speed & Duplex) - RHEL
Pb. mumble. Tout le son du PC est envoyé au serveur.xen et problème de configuration réseau.
Configuration serveur dédier ubuntu desktop 8.04 
Plus de sujets relatifs à : Pb Configuration Webdav sur Apache2


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR