resource-name
Use the resource-name stanza entry to define HTTP transformation resources.
Syntax
resource-name = resource-file Description
This configuration information is necessary to support WebSEAL HTTP transformations. You can use WebSEAL HTTP transformations to modify HTTP requests and HTTP responses (excluding the HTTP body) using XSLT or Lua scripting.
WebSEAL will use the extension of the resource file name to determine whether the resource file corresponds to a Lua script, or an XSLT file. Any resource file names which end with ‘.lua’ will be treated as a Lua script, and all other files will be treated as an XSLT file.
For more details, see HTTP transformations.
Options
- resource-name
- The name of the HTTP transformation resource.
- resource-file
- The name of the resource file.Note: You must restart WebSEAL for changes to a rules file to take effect.
Usage
This stanza entry is optional.
Comments
If an HTTP transformation rule modifies the URI or host header of the request, WebSEAL reprocesses the transformed request. This reprocessing ensures that the transformation does not bypass WebSEAL authorization. This behavior also means that administrators can define HTTP transformations rules to send requests to different junctions.
Default value
None.
Example
resourceOne = resourceOne.xsl
resourceTwo = resourceTwo.lua