Actions
Feature #2734
closedSetting multiple response headers with same name
Status:
Fixed
Priority:
Normal
Category:
mod_magnet
Target version:
-
ASK QUESTIONS IN Forums:
No
Description
I want to set multiple response headers with the same name.
I've tried the following:
setenv.add-response-header += ( "X-Robots-Tag" => "googlebot: noindex, nofollow", "X-Robots-Tag" => "mediapartners-google: noindex, nofollow", "X-Robots-Tag" => "facebookexternalhit: noindex, nofollow", )This gave an error.
I've tried:
setenv.add-response-header += ( "X-Robots-Tag" => ("googlebot: noindex, nofollow", "mediapartners-google: noindex, nofollow", "facebookexternalhit: noindex, nofollow") )This also gave an error.
I've tried:
setenv.add-response-header += ( "X-Robots-Tag" => "googlebot: noindex, nofollow", ) setenv.add-response-header += ( "X-Robots-Tag" => "mediapartners-google: noindex, nofollow", ) setenv.add-response-header += ( "X-Robots-Tag" => "facebookexternalhit: noindex, nofollow", )This didn't give an error, but it just concatinated all of them in one header and put commas between them.
What is the correct way to do this?
Updated by gstrauss about 1 year ago
- Category changed from mod_setenv to mod_magnet
- Status changed from Wontfix to Fixed
Actions
Also available in: Atom