当我NodePort
从 Nginx 服务器使用访问 Istio 网关curl
时,我得到了正确的响应,如下所示:
curl -v "http://52.66.195.124:30408/status/200"
* Trying 52.66.195.124:30408...
* Connected to 52.66.195.124 (52.66.195.124) port 30408 (#0)
> GET /status/200 HTTP/1.1
> Host: 52.66.195.124:30408
> User-Agent: curl/7.76.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< server: istio-envoy
< date: Sat, 18 Sep 2021 04:33:35 GMT
< content-type: text/html; charset=utf-8
< access-control-allow-origin: *
< access-control-allow-credentials: true
< content-length: 0
< x-envoy-upstream-service-time: 2
<
* Connection #0 to host 52.66.195.124 left intact
当我通过 Nginx 代理进行配置时,如下所示,我正在HTTP ERROR 426
通过域。
注意:我的域是 HTTPS - https://dashboard.example.com
server {
server_name dashboard.example.com;
location / {
proxy_pass http://52.66.195.124:30408;
}
}
谁能帮我理解这个问题?