umputun / reproxy

Simple edge server / reverse proxy
http://reproxy.io
MIT License
1.21k stars 90 forks source link

use the regex match of subdomain #168

Closed FrancYescO closed 7 months ago

FrancYescO commented 7 months ago

i'm trying witouth success to proxy a range of subdomain to another host/path.. something like this

reproxy --static.enabled --static.rule="(.*).example.com,(.*),https://$1.foo.com/$2"

that should result in http://AAAA.example.com/UUUU proxied to https://AAAA.foo.com/UUUU

Is this possible somehow?

umputun commented 7 months ago

moved to discussion