0

I would like to get the ServerName on the HTTP response of Apache in a custom header.

Something like this:

Header Set X-VirtualServerName "%{SERVERNAME}"

Please consider this string can be different from the "host" declared in the request by the client due to ServerAlias directive and the ServerName may change between virtualhosts.

Tobia
  • 1,272
  • 9
  • 41
  • 81

0 Answers0