Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Re: httpd unable to match on /?
To:
Mischa <openbsd@mlst.nl>
Cc:
Tech <tech@openbsd.org>
Date:
Mon, 11 May 2026 22:34:15 +0200

Download raw body.

Thread
On Mon, 11 May 2026 20:06:53 +0200,
Mischa <openbsd@mlst.nl> wrote:
> 
> > Anyway, I not sure that matching by GET parameters in locaiton is good
> > idea.
> 
> Where should they be matched?
> 

I don't see any easy way to match by location in httpd.

In relayd you have this one:

     path option [key [value value]]
             Look up the entity as a value in the URL path when using the http
             protocol.  This type is only available with the direction
             request.  The key will match the path of the requested URL
             without the hostname and query and the value will match the
             complete query, for example:

                   block path "/index.html"
                   block path "/cgi-bin/t.cgi" value "foo=bar*"


-- 
wbr, Kirill