Skip to content

goabout/redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirector

HTTP server that redirects requests

Usage

The easiest way to run the redirector is using Docker.

Create a configuration file containing the redirections:

cat <<. >redirector.yaml
redirections:
  - host: example.org
    target: https://example.com
.

See etc/redirector.yaml for a documented example configuration file.

Then start the redirector:

docker run \
    -v $PWD/redirector.yaml:/etc/redirector.yaml:ro \
    -p 8000:80 \
    goabout/redirector

To test:

curl localhost:8000 -Hhost:example.org

About

HTTP server that redirects requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published