How to configure Apache httpd to change basic auth setting based on query string

Solution Unverified - Updated -

Issue

  • How do I configure Apache httpd to change basic auth setting based on query string?
  • Concretely speaking, I would like to change AuthUserFile setting based on query string. For example, use AuthUserFile /etc/httpd/passwd/testauth1 for https://www.example.com/restricted/example.html?code=111 and use AuthUserFile /etc/httpd/passwd/testauth2 for https://www.example.com/restricted/example.html?code=222.

Environment

  • Red Hat Enterprise Linux (RHEL) 6.x, 7.x
  • Red Hat JBoss Web Server (JWS) 2.x, 3.x
  • Apache httpd 2.2, 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content