小埋社区

    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    又是被Nginx逼疯的一天

    水区
    3
    5
    966
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bruce
      Bruce ACG last edited by

      为了给我的VPS开WS,套Cloudflare CDN加速,所以准备用Nginx反向代理。WS设置了路径为/wss,Nginx加了一块配置

      location /wss {
          proxy_pass http://127.0.0.1:1234;
          # ...
      }
      

      然后重启服务
      结果死活不生效,访问/wss直接404,查看日志发现访问/wss的时候压根没有走反向代理,而是去/usr/share/nginx/html下去找wss了


      感觉配Nginx从来都是随缘,缘分到了,配置就生效了

      L 1 Reply Last reply Reply Quote 0
      • 闲淡酱
        闲淡酱 站长 last edited by

        试试caddy

        Bruce 1 Reply Last reply Reply Quote 0
        • Bruce
          Bruce ACG @闲淡酱 last edited by

          @闲淡酱 好起来了,今天半夜更新内核然后重启后发现Nginx突然好起来了
          还有我实在不想用Go这种残废语言写的软件

          闲淡酱 1 Reply Last reply Reply Quote 0
          • 闲淡酱
            闲淡酱 站长 @Bruce last edited by

            @bruce caddy配置起来还是挺方便的

            dc23cc8a-a67b-4695-9574-37141b7a840c-image.png

            1 Reply Last reply Reply Quote 0
            • L
              lijingfind @Bruce last edited by

              @bruce 来这里学习~

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              © 2017-2022 小埋社区 All Rights Reserved | 皖ICP备17016228号-2