This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a template for htaccess, should be generated at install time
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<IfModule mod_rewrite.c> | ||
# You must set the correct values here if you want | ||
# to enable webDAV sharing. The values assume that your | ||
# Pydio installation is at http://yourdomain/ | ||
# and that you want the webDAV shares to be accessible via | ||
# http://yourdomain/shares/repository_id/ | ||
RewriteEngine on | ||
RewriteBase /${APPLICATION_ROOT} | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^shares ./dav.php [L] | ||
RewriteRule ^api ./rest.php [L] | ||
RewriteRule ^user ./index.php?get_action=user_access_point [L] | ||
RewriteCond %{REQUEST_URI} !^/${APPLICATION_ROOT}index | ||
RewriteCond %{REQUEST_URI} !^/${APPLICATION_ROOT}plugins | ||
RewriteCond %{REQUEST_URI} ^/${APPLICATION_ROOT}dashboard|^/${APPLICATION_ROOT}settings|^/${APPLICATION_ROOT}ws- | ||
RewriteRule (.*) index.php [L] | ||
|
||
#Following lines seem to be necessary if PHP is working | ||
#with apache as CGI or FCGI. Just remove the # | ||
#See http://doc.tiki.org/WebDAV#Note_about_Apache_with_PHP_as_fcgi_or_cgi | ||
|
||
#RewriteCond %{HTTP:Authorization} ^(.*) | ||
#RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] | ||
</IfModule> |