Fork me on GitHub

Using the Servlet Filter Decorators plugin

Configuration

Properties of a configuration set

Property Type Default Description
enabled boolean true Enable this configuration or not.
hostnames multiple string Mandatory list of hostnames, matching a browser request to this configuration set (NOTE: compiled as java regex Pattern).
contextpaths multiple string Mandatory list of context paths, matching number of hostnames.
hostheader string X-Forwarded-Host Name of the request header that is used for host detection.

example configuration:

        jcr:primaryType: hipposys:moduleconfig
          enabled: true
          hostheader: X-Forwarded-Host
          hostnames: [localhost, 127.0.0.1, .*onehippo\.com, .*onehippo\.org]
          contextpaths: [/site, /site, /, /]