ℹ️ 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 multiple domains

This example defines a reverse proxy with two virtualhosts: one for example.com, and another for other-website.com. The agent listens on both ports 80 and 443:

  • for example.com, it forwards requests to 127.0.0.1:8080
  • for other-website.com, it forwards requests to 127.0.0.1:8081

The agent acts as an SSL endpoint, with SSL certificates configured for each of the two virtual hosts. In both cases, the forwarding occurs in http mode (not https).