Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configurazione webdav: 405 Method Not Allowed [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Apr 27, 2008 8:14 pm    Post subject: Configurazione webdav: 405 Method Not Allowed [RISOLTO] Reply with quote

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
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Sun Apr 27, 2008 8:57 pm    Post subject: Reply with quote

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" :lol: e cosi' e' stato :oops: Vabbe' magari sara' utile ad altri ;)
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
Tigerwalk
Guru
Guru


Joined: 15 May 2007
Posts: 475
Location: Napoli

PostPosted: Sun Apr 27, 2008 9:16 pm    Post subject: Reply with quote

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" :lol: e cosi' e' stato :oops: 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! :wink:
_________________
Linux user N°447789
Carpe diem (quam minimum credula postero) -Orazio (I,11)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum