ℹ️ This page contains an example of a configuration file for the redirection.io agent.
To discover all the configuration file and its options, please refer to the
agent configuration reference. You may also
check the list of configuration examples to
find a configuration example that is close to your technical context.
Virtualhosts with per-domain behavior
This example defines a default reverse proxy configuration and two virtual_hosts: one for website domains with a dedicated project key, and one TLS domain serving a local directory with its own project key. It also demonstrates host-based overrides for agent and forwarding settings.