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