|
|
|
|
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>
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
[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
Configuration: Solaris10
Merci de cette réponse rapide.
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... |
J'ai avancé, j'ai mis les droits chmod -R 777 /usr/local/apache2/var
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 ? |
Voici mon httpd.conf simplifié au maximum. Toujours cette erreur 301.
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>
|
Au cas où ca intéresse des personnes, je viens de trouver, j'ai testé avec un client RedHat et ca fonctionne parfaitement.
|