How to configure Apache httpd to change basic auth setting based on query string
Issue
- How do I configure Apache httpd to change basic auth setting based on query string?
- Concretely speaking, I would like to change
AuthUserFilesetting based on query string. For example, useAuthUserFile /etc/httpd/passwd/testauth1forhttps://www.example.com/restricted/example.html?code=111and useAuthUserFile /etc/httpd/passwd/testauth2forhttps://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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
