Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
Apache LocationMatch named regular expression strange behavior

I'm trying to create dynamic apache config for lots of directories with OpenID auth, but I never got it to work, I think that there's something wrong with named regexp, but I don't know.

Here's my virtualhost config:

AliasMatch ^/backup/(.*)$ /user_server_backups/$1
    <LocationMatch "^/backup/(?<sitename>[^/]+)">
            Require claim "roles:%{env:MATCH_SITENAME}"
            AuthType openid-connect
    </LocationMatch>

Whenever I try to access I got 401 I tried also using numbered regexp but as described in docs numbered regexps are ignored.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You'll need to use at least version 2.4.2.1 of mod_auth_openidc, see: https://github.com/zmartzone/mod_auth_openidc/pull/469

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!