Wikimedia的反向代理失败,出现400错误

时间:2019-11-18 14:20:25

标签: nginx reverse-proxy wikimedia

https://maps.wikimedia.org一段时间以来,我们一直在网站上使用Wikimedia地图图块,但现在,我国已经将整个Internet屏蔽了。我正在尝试将URL传递给Wikimedia,但我收到了其400错误页面。这是我的Nginx配置:

server {
    listen 80;
    server_name map.example.ir www.map.example.ir;
    location / {
              include proxy_params;
              proxy_pass https://maps.wikimedia.org;
    }

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/map.example.ir/fullchain.pem; # managed by Certb$
ssl_certificate_key /etc/letsencrypt/live/map.example.ir/privkey.pem; # managed by Cer$
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

我尝试使用https://maps.wikimedia.org/osm-intl/13/5268/3226.png的网址有效,但是当我尝试 https://map.example.ir/osm-intl/13/5268/3226.png 我收到此错误

  

错误   我们的服务器目前正在维护中或遇到技术问题。请过几分钟再试。

有什么想法吗?

0 个答案:

没有答案