Re: httpd request rewrite

2018-05-30 Thread Reyk Floeter
> Am 30.05.2018 um 10:12 schrieb Sebastian Benoit : > > Sebastian Benoit(be...@openbsd.org) on 2018.05.30 10:10:51 +0200: >> Reyk Floeter(r...@openbsd.org) on 2018.05.29 18:48:31 +0200: >>> Hi, >>> >>> it's about time. >>> >>>server "default" { >>>listen on * port 80 >>>

Re: httpd request rewrite

2018-05-30 Thread Sebastian Benoit
Sebastian Benoit(be...@openbsd.org) on 2018.05.30 10:10:51 +0200: > Reyk Floeter(r...@openbsd.org) on 2018.05.29 18:48:31 +0200: > > Hi, > > > > it's about time. > > > > server "default" { > > listen on * port 80 > > location match "/de/(.*)" { > >

Re: httpd request rewrite

2018-05-30 Thread Sebastian Benoit
Reyk Floeter(r...@openbsd.org) 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 t

Re: httpd request rewrite

2018-05-29 Thread Reyk Floeter
On Tue, May 29, 2018 at 10:00:22PM +0200, Hiltjo Posthuma wrote: > On Tue, May 29, 2018 at 06:48:31PM +0200, Reyk Floeter wrote: > > Hi, > > > > it's about time. > > > > server "default" { > > listen on * port 80 > > location match "/de/(.*)" { > >

Re: httpd request rewrite

2018-05-29 Thread Reyk Floeter
On Tue, May 29, 2018 at 06:48:31PM +0200, Reyk Floeter wrote: > it's about time. > > server "default" { > listen on * port 80 > location match "/de/(.*)" { > request rewrite "/ch/%1" > } > } > > Tests? OK? > I didn't ha

Re: httpd request rewrite

2018-05-29 Thread Hiltjo Posthuma
On Tue, May 29, 2018 at 06:48:31PM +0200, Reyk Floeter wrote: > Hi, > > it's about time. > > server "default" { > listen on * port 80 > location match "/de/(.*)" { > request rewrite "/ch/%1" > } > } > > You can also you

httpd request rewrite

2018-05-29 Thread Reyk Floeter
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 somethin