The sed-response filter applies sed edit commands to an outgoing response entity body, for example, an HTML file or output from a Servlet.
The following table describes parameter for the sed-response filter
Table 5–100 sed-response Parameter|
Parameter |
Description |
|---|---|
|
Specifies a sed command script. When multiple sed parameters are provided, the sed edit commands are evaluated in the order they appear. |
The following obj.conf code instructs sed-response to rewrite any occurrence of http://127.0.0.1/ in an HTML response to http://server.example.com/:
Output fn="insert-filter"
type="text/html"
filter="sed-response"
sed="s|http://127.0.0.1/|http://server.example.com/|g"