On 2/27/21 3:10 AM, Stuart Henderson wrote:
I might be missing something but doesn't this do the same?
location not found match "/(.*)" {
request rewrite "/%1.html"
}
Nope, you're not missing anything, I wasn't aware you could do this.
This *does* actually so
ges if you have a
/[] file (e.g. /404 or /404.html), which
works well in conjunction with this patch.
I'm happy to take any feedback or criticism on both the idea and my
implementation patch below. Hopefully other people find this useful as
well!
- Bruce Hill
Index: config.c
=