Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit b7cc07c

Browse files
committed
Try another solution for htaccess
1 parent 71fcf58 commit b7cc07c

File tree

3 files changed

+39
-20
lines changed

3 files changed

+39
-20
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<IfModule mod_rewrite.c>
2+
# You must set the correct values here if you want
3+
# to enable webDAV sharing. The values assume that your
4+
# Pydio installation is at http://yourdomain/
5+
# and that you want the webDAV shares to be accessible via
6+
# http://yourdomain/shares/repository_id/
7+
RewriteEngine on
8+
RewriteBase /pydio
9+
RewriteCond %{REQUEST_FILENAME} !-f
10+
RewriteCond %{REQUEST_FILENAME} !-d
11+
RewriteRule ^shares ./dav.php [L]
12+
RewriteRule ^api ./rest.php [L]
13+
RewriteRule ^user ./index.php?get_action=user_access_point [L]
14+
RewriteCond %{REQUEST_URI} !^/pydio/index
15+
RewriteCond %{REQUEST_URI} !^/pydio/plugins
16+
RewriteCond %{REQUEST_URI} ^/pydio/dashboard|^/pydio/welcome|^/pydio/settings|^/pydio/ws-
17+
RewriteRule (.*) index.php [L]
18+
19+
#Following lines seem to be necessary if PHP is working
20+
#with apache as CGI or FCGI. Just remove the #
21+
#See http://doc.tiki.org/WebDAV#Note_about_Apache_with_PHP_as_fcgi_or_cgi
22+
23+
#RewriteCond %{HTTP:Authorization} ^(.*)
24+
#RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
25+
26+
#Following lines may be necessary for a PHP-FPM setup
27+
# to make sure that authorization is transmitted.
28+
# Just remove the # at the beginning of the line
29+
30+
#SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
31+
32+
</IfModule>
33+
34+
AddType application/json .json

dist/deb-pydio/debian/pydio.postinst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ then
3434

3535
fi
3636

37-
if [ -f /tmp/pydio_original_htaccess ]
38-
then
39-
40-
mv /tmp/pydio_original_htaccess $BIN_DIR/.htaccess
37+
fi
4138

42-
fi
39+
if [ ! -f $BIN_DIR/.htaccess ]
40+
then
41+
# Install linux specific htaccess
42+
cp $BIN_DIR/plugins/boot.conf/htaccess.tpl.linux $BIN_DIR/.htaccess
4343

4444
fi
4545

dist/deb-pydio/debian/pydio.prerm

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)