Browse Source
Add `/` at the end of the location + add rewrite rule
pull/179/head
Alexandre Aubin
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
conf/nginx.conf
|
|
|
@ -5,8 +5,9 @@ location = /.well-known/caldav { |
|
|
|
return 301 https://$server_name__PATH__/remote.php/dav; |
|
|
|
} |
|
|
|
|
|
|
|
location ^~ __PATH__ { |
|
|
|
alias __FINALPATH__; |
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; |
|
|
|
location ^~ __PATH__/ { |
|
|
|
alias __FINALPATH__/; |
|
|
|
|
|
|
|
if ($scheme = http) { |
|
|
|
rewrite ^ https://$server_name$request_uri? permanent; |
|
|
|
@ -42,7 +43,7 @@ location ^~ __PATH__ { |
|
|
|
#rewrite ^/.well-known/host-meta __PATH__/public.php?service=host-meta last; |
|
|
|
#rewrite ^/.well-known/host-meta.json __PATH__/public.php?service=host-meta-json last; |
|
|
|
|
|
|
|
location __PATH__ { |
|
|
|
location __PATH__/ { |
|
|
|
rewrite ^ __PATH__/index.php$request_uri; |
|
|
|
} |
|
|
|
|
|
|
|
|