View previous topic :: View next topic |
Author |
Message |
flocchini Veteran
Joined: 17 May 2003 Posts: 1124 Location: Milano, Italy
|
Posted: Sun Apr 27, 2008 8:14 pm Post subject: Configurazione webdav: 405 Method Not Allowed [RISOLTO] |
|
|
sto mettendo su un server webdav con l'obiettivo di condividere un calendario, sto utilizzando apache 2.2.8
configurazione di default, ho attivato semplicemente mod_dav e dav_fs in apache2.conf
questa e' la config di mod_dav
Code: | <IfDefine DAV>
<IfModule dav_module>
<IfModule dav_fs_module>
DavLockDB "/var/lib/dav/lockdb"
# The following example gives DAV write access to a directory called
# "uploads" under the ServerRoot directory.
<IfModule alias_module>
<IfModule auth_digest_module>
<IfModule authn_file_module>
Alias /uploads "/var/www/uploads"
<Directory "/var/www/uploads">
Dav On
AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/var/www/.htpasswd-dav" DAV-upload admin
AuthUserFile "/var/www/.htpasswd-dav"
# Allow access from any host
Order allow,deny
Allow from all
# Allow universal read-access, but writes are restricted
# to the admin user.
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
</Directory>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
# The following directives disable redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with several clients that do not appropriately handle
# redirects for folders with DAV methods.
<IfModule setenvif_module>
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012345]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
</IfModule>
</IfDefine>
# vim: ts=4 filetype=apache |
che presuppone che all'utente DAV-upload (creato come da commento) sia consentito l'accesso a /var/www/uploads (creata e di proprieta' dell'utente apache).
Peccato che non vada un tubo
Code: | sovereign flocchini # cadaver http://localhost/uploads
Impossibile accedere a /uploads/ (non abilitato per WebDAV?):
405 Method Not Allowed
Connessione a "localhost" chiusa.
dav:!> |
cosa mi manca? _________________ ~~ Per amore della rosa si sopportano le spine... ~~
Last edited by flocchini on Sun Apr 27, 2008 8:58 pm; edited 1 time in total |
|
Back to top |
|
|
flocchini Veteran
Joined: 17 May 2003 Posts: 1124 Location: Milano, Italy
|
Posted: Sun Apr 27, 2008 8:57 pm Post subject: |
|
|
maledetto... mancava "DAV On" nella sezione Directory di /etc/apache2/vhosts.d/default_vhost.include dove ora si trovano molte delle direttive che di defaull stavano in httpd.conf
ma il bello e' che mi sono detto "appena posti ti viene in mete e fai la figura del pirla" e cosi' e' stato Vabbe' magari sara' utile ad altri _________________ ~~ Per amore della rosa si sopportano le spine... ~~ |
|
Back to top |
|
|
Tigerwalk Guru
Joined: 15 May 2007 Posts: 475 Location: Napoli
|
Posted: Sun Apr 27, 2008 9:16 pm Post subject: |
|
|
flocchini wrote: | maledetto... mancava "DAV On" nella sezione Directory di /etc/apache2/vhosts.d/default_vhost.include dove ora si trovano molte delle direttive che di defaull stavano in httpd.conf
ma il bello e' che mi sono detto "appena posti ti viene in mete e fai la figura del pirla" e cosi' e' stato Vabbe' magari sara' utile ad altri |
egoisticamente, faccio il tifo per le figure da pirla, così posti il problema e la relativa soluzione in poco tempo per la gioia di tutti! _________________ Linux user N°447789
Carpe diem (quam minimum credula postero) -Orazio (I,11) |
|
Back to top |
|
|
|