redirector

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2020 License: MIT Imports: 15 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL