Oh. I should add that if all you want is a static redirect, this is a simpler way of making that work. The first example I gave is in case you want to redirect the contents of "/from/" as well.
server "localhost" { listen on 127.0.0.1 port 80 location "/from/" { block return 302 "$REQUEST_SCHEME://$HTTP_HOST/to/" } } -- https://www.anthes.is/