[英]TOO_MANY_REDIRECTS error with nginx-ingress and wordpress
Try to append to a ConfigMap a new server inside the http context using the http-snippet .尝试使用http-snippet将 append 连接到http上下文中的新服务器的 ConfigMap。
For example:例如:
...
data:
ssl-redirect: "false"
hsts: "true"
server-tokens: "false"
http-snippet: |
server {
listen 8000 proxy_protocol;
server_tokens off;
return 301 https://$host$request_uri;
}
This will prevent overriding the original nginx.tmpl
, ensuring more compatibility in case of upgrade the Nginx Ingress version.这将防止覆盖原始的
nginx.tmpl
,确保在升级 Nginx Ingress 版本时具有更高的兼容性。
Please take a look: ingress-too-many-redirects , too-many-redirects-with-reverse-proxy .请看一下: ingress-too-many-redirects , too-many-redirects-with-reverse-proxy 。
Useful article: too-many-redirects-wp有用的文章: 太多重定向-wp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.