httpd's regex is based on Lua's, the following site will help you figure it out:

https://riptutorial.com/lua/example/20315/lua-pattern-matching

Keep in mind that this list isn't really tolerant of those who just
want pre-packaged solutions, you'll have to put in some elbow work.


On Wed, Jan 6, 2021 at 6:20 PM Kevin <spy...@gmail.com> wrote:
>
> Thanks Edgar,
>
> Unfortunately, still no dice.
>
> Maybe there's a bona fide expert who can chime in and pull my ass from the
> fire here. :-)
>
> Kevin
>
> On Wed, Jan 6, 2021 at 3:46 PM Edgar Pettijohn <ed...@pettijohn-web.com>
> wrote:
>
> > On Wed, Jan 06, 2021 at 02:12:40PM -0800, Kevin wrote:
> > > Hey gang,
> > >
> > > I'm trying to setup some rewrites in httpd that are needed to make some
> > > software we just purchased work.
> > >
> > > The vendor's official docs only support nginx and apache, and I'm having
> > a
> > > helluva time understanding how to make them work in our beloved OpenBSD.
> > >
> > > Below is the nginx sample they provide.
> > >
> > > Anyone with some httpd rewrite foo mind whacking me with a clue stick on
> > > how to accomplish this purty please?
> > >
> > > Thanks,
> > > Kevin
> > >
> > >    location /sendy/l/ {
> > >         rewrite ^/sendy/l/([a-zA-Z0-9/]+)$ /sendy/l.php?i=$1 last;
> > >     }
> >
> > I'm not an expert, but I would try:
> >
> > location match "^/sendy/l/([%w\/]+)$" {
> >         request rewrite "/sendy/l.php?i=$1"
> > }
> >
> > good luck
> >
> > Edgar
> >
> >

Reply via email to