I have a requirement where I need to have separate vhosts file in apache for same domain and different path. The reason behind separate vhosts is something for business use case.
All I want to know is that for different URL what kind of settings can be introduced on Akamai CDN so that I have different host headers sent to my webserver. for eg. www.foo.com/abc sends a host header of abc.foo.com
Any other solution is also appreciated
Yes, you can specify what
Host
header is sent to your origin based on any number of criteria including the path. There are a few ways you can do this. Here's one example.Host
value.Host
header. In this case, I'm pulling out the first part of the path and storing it asPMUSER_ORIGINHOST_PART1
and the second part of the path asPMUSER_ORIGINHOST_PART2
. (Documentation on how to use the "Path Component Offset" is at techdocs.akamai.com.)Host
header going to your origin like below.