Skip to content

instedd/redirect-to-location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published