.. | ||
main.go | ||
README.md |
Example: Basic rewriting
This example use the WithRewriteHosts()
middleware to rewrite incoming requests based on static host matching rules.
How to run
Run with go run ./examples/basic_rewrite
then open your browser on theses 2 URLs:
You'll see that the two URLs are targeting two differents remote servers.