I am using apache 2.4 and would like to create multiple vhosts.
The vhosts should be matched based on the X-Forwarded-Host
header, instead of the Host
header.
Unfortunatly I could not find anything in the documentation. Is this behaviour possible? If yes, how?
To further clarify my problem: The documentation of the ServerName directive states
If you are using name-based virtual hosts, the ServerName inside a section specifies what hostname must appear in the request's Host: header to match this virtual host.
I am trying to achive the same behaviour, but based on X-Forwarded-Host