Sebastian Benoit([email protected]) on 2018.05.30 10:10:51 +0200:
> Reyk Floeter([email protected]) on 2018.05.29 18:48:31 +0200:
> > Hi,
> > 
> > it's about time.
> > 
> >     server "default" {
> >             listen on * port 80
> >             location match "/de/(.*)" {
> >                     request rewrite "/ch/%1"
> >             }
> >     }
> > 
> > You can also you the macros as in the "block return" external
> > redirects.  So maybe something like:
> > 
> >     server "default" {
> >             listen on * port 80
> >             location match "/(.*)" {
> >                     request rewrite "/$HTTP_HOST/%1"
> >             }
> >     }
> > 
> > Tests? OK?
> 
> nice,
> 
> but why use %1 instead of $1 as all other mechanisms of this kind do (that i
> knwo of)?

to answer myself: patterns(7)

Reply via email to