diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-03 20:58:18 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-02-08 01:23:56 +0100 |
commit | a19c24edc1057bd411821f9e3e7d1d309d38b1bb (patch) | |
tree | ee572568811b8ed56630156ab88b0a2278785e65 /.htaccess | |
parent | 630ebca2b6359e942e5b6c057cca2b6069c1093a (diff) | |
download | Shaarli-a19c24edc1057bd411821f9e3e7d1d309d38b1bb.tar.gz Shaarli-a19c24edc1057bd411821f9e3e7d1d309d38b1bb.tar.zst Shaarli-a19c24edc1057bd411821f9e3e7d1d309d38b1bb.zip |
Add ldap connectiongitolite_local/ldap
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -6,10 +6,23 @@ RewriteEngine On | |||
6 | # Prevent accessing subdirectories not managed by SCM | 6 | # Prevent accessing subdirectories not managed by SCM |
7 | RewriteRule ^(.git|doxygen|vendor) - [F] | 7 | RewriteRule ^(.git|doxygen|vendor) - [F] |
8 | 8 | ||
9 | RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ | ||
10 | RewriteRule ^(.*) - [E=BASE:%1] | ||
11 | |||
12 | RewriteCond %{ENV:REDIRECT_BASE} (.+) | ||
13 | RewriteRule .* - [E=BASE:%1] | ||
14 | |||
9 | # Forward the "Authorization" HTTP header | 15 | # Forward the "Authorization" HTTP header |
10 | RewriteCond %{HTTP:Authorization} ^(.*) | 16 | RewriteCond %{HTTP:Authorization} ^(.*) |
11 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] | 17 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] |
12 | 18 | ||
19 | RewriteCond %{REQUEST_FILENAME} !-f | ||
20 | RewriteCond %{REQUEST_FILENAME} !-d | ||
21 | RewriteRule ^((?!api/)[^/]*)/?(.*)$ $2?%{QUERY_STRING} [E=USERSPACE:$1] | ||
22 | |||
23 | RewriteCond %{ENV:REDIRECT_USERSPACE} (.+) | ||
24 | RewriteRule .* - [E=USERSPACE:%1] | ||
25 | |||
13 | # REST API | 26 | # REST API |
14 | RewriteCond %{REQUEST_FILENAME} !-f | 27 | RewriteCond %{REQUEST_FILENAME} !-f |
15 | RewriteCond %{REQUEST_FILENAME} !-d | 28 | RewriteCond %{REQUEST_FILENAME} !-d |