Score:0

How can I add the (virtual) ServerName value as customer Header in Apache2?

in flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.