星期天博客
  • VPN
  • 服务器
    • CDN
  • 云盘
  • 邮箱
  • AI
  • VPN
  • 服务器
    • CDN
  • 云盘
  • 邮箱
  • AI
  1. 首页
  2. 标签
  3. 反向代理
nginx提示502bad gateway

服务器 nginx提示502bad gateway

今天给一个网站做了一个本地端口proxy_pass(反代),网站正常浏览,但是根目录的几个文件robots.txt,404.html出现了502 bad gateway。以为是/没加上,但是发现还是依然错误。 location / {
        proxy_pass http://127.0.0.1:8080;
    &nbs

0个评论
服务器 2019-09-15
nginx模块编译及反向镜像网站

服务器 nginx模块编译及反向镜像网站

      使用oneinstack安装LNMP环境,由于默认是缺少两个模块的,所以需要我们编译一下nginx;       首先查看一下nginx -V;        然后git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module.git 或者wget -O ng

0个评论
服务器 2019-03-29
 Theme by Puock