WebDAV: diferència entre les revisions

De WikiMar
Salta a la navegació Salta a la cerca
Cap resum de modificació
Cap resum de modificació
Línia 1: Línia 1:
<br>
==Servidor==
 
Es pot fer amb


Es pot fer amb
  &lt;Location /dav&gt;
  <Location /dav>
  ...
  ...
  </Location>
  &lt;/Location&gt;
pero aleshores no es pot posar el AllowOverride None
 
pero aleshores no es pot posar el AllowOverride None  
 
<br> Part del Fitxer /etc/apache2/vhost_nomdomini.conf:  
<br> Part del Fitxer /etc/apache2/vhost_nomdomini.conf:  


Línia 84: Línia 86:


Aquest error ha estat corretgit gracies al post: http://marc.info/?l=dav-dev&amp;m=108742481918786&amp;w=2
Aquest error ha estat corretgit gracies al post: http://marc.info/?l=dav-dev&amp;m=108742481918786&amp;w=2
==Client==
===Windows===
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 stunnel. More Info Simple Groupware WebDAV.

Revisió del 13:20, 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

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 stunnel. More Info Simple Groupware WebDAV.