Admins/WebDav

De Wiki Expresso V3
Ir para: navegação, pesquisa

Configuração Webdav no Servidor(para administradores)

Habilite os módulos REWRITE e DAV no Apache.

 Habilitando módulos rewrite e dav:
 a2enmod rewrite 
 a2enmod dav

Edite o arquivo /etc/apache2/sites-enabled/expressov3 e/ou expressov3-ssl (para https) e adicione as linhas na seção Directory da aplicação expressov3:

        RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
        RewriteRule ^$            /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^addressbooks /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^calendars    /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^principals   /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^webdav       /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]  

conforme exemplo abaixo (Considerando que a aplicação está em /var/www/expressov3):


     <Directory /var/www/expressov3/>
        Options FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
        RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
        RewriteRule ^$            /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^addressbooks /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^calendars    /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^principals   /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
        RewriteRule ^webdav       /var/www/expressov3/index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
     </Directory>
Ferramentas pessoais
Espaços nominais

Variantes
Ações
Navegação
Ferramentas