Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 833 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 833 Bytes

Redirect to location

Minimal Docker container to redirect all incoming requests to a given location. Intented to be used in proxy servers.

Inspired by instedd/redirect-to-https & manastech/redirect-to-prefix.

How to use

Run the instedd/redirect-to-location:0.1 image, setting the TARGET_LOCATION environment variable to the location you want to redirect visitors to (ie, TARGET_LOCATION=https://example.com/some-path/a-page.html). The container listens in TCP port 80.

You can use any valid expression for the location as per HAProxy's redirect config (the container doesn't check or sanitize the value).