Project

General

Profile

Actions

Feature #2734

closed

Setting multiple response headers with same name

Added by jornane almost 9 years ago. Updated about 1 year ago.

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?

#4

Updated by gstrauss almost 9 years ago

  • Status changed from New to Wontfix
#6

Updated by stbuehler over 8 years ago

  • Target version deleted (1.4.x)
#7

Updated by gstrauss over 1 year ago

  • ASK QUESTIONS IN Forums set to No
#8

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