mardi 24 avril 2018

How to set HTTP header difference by URL in Apache

I try to set Apache/2.4.25 (Debian) (via docker) form this post but that's not work for me.

Configuration file like.

  Header set Test-1 %{THE_REQUEST}e
  <If "%{REQUEST_URI} != '/en'">
    Header set Test-2 %{REQUEST_URI}e
  </If>

When call GET /en HTTP header is

  Test-1: (null)
  Test-2: /en

How do I fix it?

Aucun commentaire:

Enregistrer un commentaire