How to add a custom request header with changing a value depending on client IP address in Apache httpd 2.4
Issue
- Apache httpd is configured as a proxy server and I would like to add a custom request header with changing a value depending on client IP address in Apache httpd 2.4.
- How can I add a custom request header with changing a value depending on client IP address in Apache httpd 2.4? For example:
- Adding the request header "TestHeader: TestValue" for the client from 192.168.1.0/24
- Adding "TestHeader: val1" for 192.168.1.1, "TestHeader: val2" for 192.168.1.2 and TestHeader: val3" for 192.168.1.3.
Environment
- Red Hat Enterprise Linux (RHEL) 7
- JBoss Web Server (JWS) 3
- JBoss Core Services (JBCS)
- Apache httpd 2.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.