make index files into an implementation detail
This commit is contained in:
parent
81fa2a6f23
commit
5262ad4ee7
@ -137,10 +137,6 @@ http {
|
|||||||
return 301 $1/$2;
|
return 301 $1/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request_uri ~ ^(.*)/index$) {
|
|
||||||
return 301 $1/;
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
||||||
if ($request_uri ~ "^/(.*)%3Ca%20href=$") {
|
if ($request_uri ~ "^/(.*)%3Ca%20href=$") {
|
||||||
return 301 /$1;
|
return 301 /$1;
|
||||||
@ -289,7 +285,7 @@ http {
|
|||||||
add_header Cache-Control "public, max-age=1800";
|
add_header Cache-Control "public, max-age=1800";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ "\.(br|gz|html)$" {
|
location ~ "(/index|\.(br|gz|html))$" {
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user