The conf_remap plug-in

The conf_remap plug-in allows you to override configuration directives dependent on actual remapping rules. This plug-in replaces older legacy functionality which allowed to achieve a similar behaviour previously by configuring remap rules for example with switches like "@pristine_host_hdr=1" in your remap configuration. The plugin is built and installed as part of the normal Apache Traffic Server installation process.

If you want to achieve this behaviour now, configure a remap rule like this:

map http://cdn.example.com/ http://some-server.example.com @plugin=conf_remap.so @pparam=/etc/trafficserver/cdn.conf

where cdn.conf would look like records.config, for example:.

CONFIG proxy.config.url_remap.pristine_host_hdr INT 1

Doing this, you will override your global default configuration on a per mapping rule. For now, those options may be overridden through conf_remap: