Home

Traffic Server Software Developers Kit

Chapter 3. Remap Plugin

Table of Contents

Why Use a Remap Plugin?
Remap.API.h
Functions You Need to Implement
Examples

((Editor's note: additional text TBD; text below still under development))

 

The remap plugin provides a more flexible, dynamic way of specifying remap rules. It is not built on top of the INK_ APIs, and exists solely for the purpose of URL remapping. The remap plugin is not global --it is configured on a per-remap rule basis, which enables you to customize how URLs are redirected based on individual rules in the remap.config file.

Why Use a Remap Plugin?

As described in section ((need URL here)), Traffic Server uses the rules contained in remap.config to redirect URLs. When you write and/or use a remap plugin, you modify those static rules by attaching a piece of code to each rule. For example: