Reputation: 1269
There are http://foo.com and https://secur.foo.com.
If request from https://secur.foo.com, I want to and some external information to request headers.
Could some body tell me how to complete above requirement?
I tried following steps to add header to request, but it failed. 1. Download a new httpd and install it. 2. Uncomment line “LoadModule headers_module modules/mod_headers.so” 3. Add following code at the end of "httpd.conf"
Header add myheader "myvalue"
RequestHeader set myheader2 "myvalue2"
<ifModule mod_headers.c>
RequestHeader append myheader3 "myvalue3"
</ifModule>
But I only find "myheader:myvalue" in response, how to make "myheader2" shows in request?
Upvotes: 5
Views: 24735
Reputation: 156
try this:
<ifModule mod_headers.c>
RequestHeader append myheader2 "myvalue2"
</ifModule>
Upvotes: 3