Quoth ed bennett <[email protected]>:
>
>
>
>
>
>
>
> On Monday, October 6, 2025 at 05:49:42 AM PDT, Tomáš Rodr <[email protected]>
> wrote:
>
>
>
>
>
> > location not found match "^(.+)/$" {
> > block return 303 "%1"
> > }
> >
>
> Wonderful, this is exactly what I wanted.
> Many thanks!
>
> tr
>
> Why %1 instead of $1?
> Is this a Lua usage or just the syntax for httpd.conf?
>
> --
> Regards,
> Chris Bennett
>
yeah it uses lua regex. httpd.conf(5) says:
"location [[not] found] match path {...}"
"Like the location option, but match the path using pattern matching
instead of shell globbing rules, see patterns(7)."
the "match" version of some rules in httpd.conf uses an implementation
of lua regular expressions explained in patterns(7). the non-match
version uses shell globbing as per glob(7).
--
noodle