> On 11 Dec 2020, at 00:16, Todd C. Miller <[email protected]> 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.
>> I’ve found a way to configure it for one extension and it works great!
>> 
>> location “*.html” {
>>        fastcgi {
>>                socket “/run/slowcgi.sock”
>>                param SCRIPT_FILENAME “/path/to/handler.pl"
>>        }
>> }
> 
> Can't you just use lua-style patterns with "location match ..."?
> See the CAPTURES section in pattern(7) for details.

Sorry, still don’t understand how captures can help in this case.
In my understanding, it lacks "OR” to avoid duplicating identical location 
blocks.

location “*.html|*.css|*.js” {

}

instead of

location “*.html” {
}
location “*.css” {
}
location “*.js” {
}

Could you please give an example of using captures for this case?

Reply via email to