简体   繁体   English

如何解决 cloudflare dns 上的 Http 负载平衡错误 1003?

[英]How to resolve Http Load Balancing Error 1003 on cloudflare dns?

SSL/TLS encryption mode on Cloudflare side is on "flexible" status (https on) Cloudflare 端的 SSL/TLS 加密模式处于“灵活”状态(https on)

server side setting on third server is:第三台服务器上的服务器端设置是:

upstream backend {
  server domain1.com;
  server domain2.com;
}
server {
  listen 80;
  location / {
    proxy_pass http://backend;
 }

Error message is: Error 1003 Direct IP access not allowed报错信息是: Error 1003 Direct IP access not allowed

Cloudflare explains: Error 1003 Access Denied: Direct IP Access Not Allowed Common cause A client or browser directly accesses a Cloudflare IP address. Cloudflare 解释:Error 1003 Access Denied: Direct IP Access Not Allowed 常见原因 客户端或浏览器直接访问 Cloudflare IP 地址。 Resolution Browse to the website domain name in your URL instead of the Cloudflare IP address.解决方案浏览到您的 URL 中的网站域名,而不是 Cloudflare IP 地址。

I resolved this problem with set proxy to the header我通过将代理设置为 header 解决了这个问题

proxy_set_header Host www.domain.io;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM