convert if back into location block
This commit is contained in:
parent
a8c76c4670
commit
d0e54474fe
@ -137,11 +137,6 @@ http {
|
|||||||
return 301 $1/$2;
|
return 301 $1/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
|
||||||
if ($request_uri ~ "^/(.*)%3Ca%20href=$") {
|
|
||||||
return 301 /$1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /security.txt {
|
location = /security.txt {
|
||||||
return 301 /.well-known/security.txt;
|
return 301 /.well-known/security.txt;
|
||||||
}
|
}
|
||||||
@ -309,6 +304,11 @@ http {
|
|||||||
return 301 /favicon.svg;
|
return 301 /favicon.svg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
|
||||||
|
location ~ "^/([^\s]*)%3Ca%20href=$" {
|
||||||
|
return 301 /$1;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ "(/index|\.(br|gz|html))$" {
|
location ~ "(/index|\.(br|gz|html))$" {
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user