Re: httpd location statement

2020-12-11 Thread Todd C . Miller
On Fri, 11 Dec 2020 09:54:43 +0200, Alexey Vatchenko wrote: > Sorry, still don’t understand how captures can help in this case. > In my understanding, it lacks "OR” to avoid duplicating identical > location blocks. Sorry, I misremembered. You are correct that lua patterns don't support

Re: httpd location statement

2020-12-10 Thread Alexey Vatchenko
> On 11 Dec 2020, at 00:16, Todd C. Miller wrote: > > On Thu, 10 Dec 2020 19:24:20 +0200, Alexey Vatchenko wrote: > >> I’m migrating from ancient server with OpenBSD’s apache1 to 6.8 OpenBSD’s htt >> pd. >> In my configuration I use Handler for .html, .htm, .css, .js and 4 more exten >> sions.

Re: httpd location statement

2020-12-10 Thread Todd C . Miller
On Thu, 10 Dec 2020 19:24:20 +0200, Alexey Vatchenko wrote: > I’m migrating from ancient server with OpenBSD’s apache1 to 6.8 OpenBSD’s htt > pd. > In my configuration I use Handler for .html, .htm, .css, .js and 4 more exten > sions. > I’ve found a way to configure it for one extension and it

Re: httpd location statement

2020-12-10 Thread Alexey Vatchenko
> On 10 Dec 2020, at 20:51, Florian Obser wrote: > > I think the only way is to repeat the location statement for each extension :/ If preparing a patch, what is the preferable syntax for this functionality? location regex “/.*\.(html|css){1}$” { # something }

Re: httpd location statement

2020-12-10 Thread Florian Obser
I think the only way is to repeat the location statement for each extension :/ You can leave out the socket since that's the default On 10 December 2020 18:24:20 CET, Alexey Vatchenko wrote: >Hello! > >I’m migrating from ancient server with OpenBSD’s apache1 to 6.8 >OpenBSD’s httpd. >In my