0
使用stubby4node我试图将重定向配置到同一主机上的不同端口。stubby4node重定向到同一主机上的不同端口
我的问题是,我没有可用的主机变量,我可以用它来重写绝对网址。我曾尝试使用相对URL与端口开始,但这并不似乎是遵从HTTP:
- request:
method: GET
url: /abc/client/v4/([a-zA-Z]{2,5})/([a-zA-Z]{2})/register/Apple/([a-z0-9\.]*)/([a-fA-F0-9\s]*)
response:
status: 302
headers:
Location: :3000/pushRegistration/<%url[3]%>
我希望有像<%的可变url.host%>,我可以读取但我没有在文档中找到任何内容。