• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Nginx反向代理RabbitMQ出现交换机和队列出现Not found The object you clicked on was not found; it may have been。。。

武飞扬头像
小刘要努力(ง •̀_•́)ง
帮助1

Nginx反向代理RabbitMQ,出现交换机和队列出现控制台

Not found

The object you clicked on was not found; it may have been deleted on the server.

学新通

 学新通

 下方为Nginx配置内容:

学新通

 经过网上查询得出是Nginx在反向代理RabbitMQ的时候,RabbitMQ的请求路径中的特殊字符转换失败。

解决办法

  1.  
    location /rabbitmq/ {
  2.  
    port_in_redirect on;
  3.  
    proxy_redirect off;
  4.  
    proxy_pass http://xxx.xxx.xxx:15672/;
  5.  
    proxy_set_header X-Real-IP $remote_addr;
  6.  
    proxy_set_header User-Agent $http_user_agent;
  7.  
    proxy_set_header Host $http_host;
  8.  
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  9.  
    proxy_set_header X-Forwarded-Proto $scheme;
  10.  
    }
  11.  
     
  12.  
    location ~* /rabbitmq/api/ {
  13.  
    rewrite ^ $request_uri;
  14.  
    rewrite ^/rabbitmq/api/(.*) /api/$1 break;
  15.  
    return 400;
  16.  
    proxy_pass http://xxx.xxx.xxx:15672$uri;
  17.  
    proxy_buffering off;
  18.  
    proxy_set_header Host $http_host;
  19.  
    proxy_set_header X-Real-IP $remote_addr;
  20.  
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21.  
    proxy_set_header X-Forwarded-Proto $scheme;
  22.  
    }
学新通

学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhfijgkg
系列文章
更多 icon
同类精品
更多 icon
继续加载