【发布时间】:2020-12-30 07:41:15
【问题描述】:
鉴于 prestosql 集群已启动并监听 localhost:8080,我发现它会将请求重定向到 http://localhost:8080/ui/
> curl -v http://localhost:8080/
* Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
> Accept: */*
> Referer:
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 303 See Other
< Date: Thu, 02 Jul 2020 14:07:10 GMT
< Location: http://localhost:8080/ui/
< Content-Length: 0
是否支持/prestosql 之类的前缀,以便它可以将请求从/prestosql 重定向到/prestosql/ui 而不是/ui/?
该场景是关于在 prestosql 前面使用网关,然后通过 URL 重写路由请求。例如,Nginx/HAProxy 或 Istio 虚拟服务。
【问题讨论】:
-
不,但我希望这是您可以在代理中执行的操作。