WebDAV: diferència entre les revisions
Cap resum de modificació |
Cap resum de modificació |
||
| Línia 91: | Línia 91: | ||
==Client== | ==Client== | ||
===Windows=== | === Windows === | ||
Windows XP includes the WebClient service that allows one to mount a Web Folder as a mapped network drive: | Information backed up from http://smallvoid.com/article/winnt-webdav-network-drive.html | ||
Windows XP includes the WebClient service that allows one to mount a Web Folder as a mapped network drive: | |||
net use x: "http://server.com/folder" /User:UserName Password | net use x: "http://server.com/folder" /User:UserName Password | ||
Note to make the mapping permanent add the parameter /persistent:yes | Note to make the mapping permanent add the parameter /persistent:yes | ||
Note Windows XP can only connect to port 80 and can only map to a sub folder and not the root directly. | Note Windows XP can only connect to port 80 and can only map to a sub folder and not the root directly. | ||
If wanting to make a secure SSL mapping using the https protocol at port 443: | If wanting to make a secure SSL mapping using the https protocol at port 443: | ||
net use x: "\\server.com@ssl:443\folder" /User:UserName Password | net use x: "\\server.com@ssl:443\folder" /User:UserName Password | ||
| Línia 106: | Línia 108: | ||
net use x: "https://server.com/folder" /User:UserName Password | net use x: "https://server.com/folder" /User:UserName Password | ||
Note Windows XP only supports SSL / https connections when using My Network Places, but can be tricked into using SSL with net use by creating a forward server using stunnel. More Info Simple Groupware WebDAV. | Note Windows XP only supports SSL / https connections when using My Network Places, but can be tricked into using SSL with net use by creating a forward server using http://www.stunnel.org/ (stunnel) . More Info http://www.simple-groupware.de/cms/Main/WebDAV (Simple Groupware WebDAV). | ||
Revisió del 13:31, 15 jul 2008
Servidor
Es pot fer amb
<Location /dav> ... </Location>
pero aleshores no es pot posar el AllowOverride None
Part del Fitxer /etc/apache2/vhost_nomdomini.conf:
<Directory /var/www/de.espai.de/htdocs/dav>
Dav On
Options None
#Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
#DavMinTimeout 600
BrowserMatch "Dreamweaver-WebDAV*" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS" redirect-carefully
BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
AuthType Basic
AuthName "Restricted Repository"
AuthUserFile /var/www/de.espai.de/.davpasswd
<Limit GET HEAD OPTIONS PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
#Require user m
</Limit>
<LimitExcept GET HEAD OPTIONS>>
Require user guest
</LimitExcept>
</Directory>
<Directory /var/www/de.espai.de/htdocs/dav>
DAV On
#AuthType Digest
#AuthName "Bluehz's iDisk"
#AuthDigestDomain idisk.domain_Name_here
#AuthDigestFile /usr/local/apache/conf/users/domain_Name_here/.digest_pw
AuthType Basic
AuthName "Restricted Repository"
AuthUserFile /var/www/de.espai.de/.davpasswd
AllowOverride None
Options None
BrowserMatch "Dreamweaver-WebDAV*" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS" redirect-carefully
BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
<Limit GET HEAD OPTIONS PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
#Require user bluehz
Require valid-user
</Limit>
<LimitExcept GET HEAD OPTIONS>>
Require user guest
</LimitExcept>
</Directory>
The important part is that, in case that the folders cannot be deleted or renamed in WebDAV for Windows XP or Vista it is needed to add the following lines:
BrowserMatch "Dreamweaver-WebDAV*" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS" redirect-carefully
BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
Aquest error ha estat corretgit gracies al post: http://marc.info/?l=dav-dev&m=108742481918786&w=2
Client
Windows
Information backed up from http://smallvoid.com/article/winnt-webdav-network-drive.html
Windows XP includes the WebClient service that allows one to mount a Web Folder as a mapped network drive:
net use x: "http://server.com/folder" /User:UserName Password
Note to make the mapping permanent add the parameter /persistent:yes
Note Windows XP can only connect to port 80 and can only map to a sub folder and not the root directly.
If wanting to make a secure SSL mapping using the https protocol at port 443:
net use x: "\\server.com@ssl:443\folder" /User:UserName Password
net use x: "https://server.com/folder" /User:UserName Password
Note Windows XP only supports SSL / https connections when using My Network Places, but can be tricked into using SSL with net use by creating a forward server using http://www.stunnel.org/ (stunnel) . More Info http://www.simple-groupware.de/cms/Main/WebDAV (Simple Groupware WebDAV).