美文网首页
nginx踩坑

nginx踩坑

作者: Iterate | 来源:发表于2020-10-21 14:15 被阅读0次

    nginx配置文件没错

    报错

    Whitelabel Error Page
    This application has no explicit mapping for /error, so you are seeing this as a fallback.
    
    Wed Oct 21 14:09:20 CST 2020
    There was an unexpected error (type=Internal Server Error, status=500).
    Token????????
    

    找不到文件夹是报 404 才对

    原因

    location /qyh{
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://127.0.0.1:16832/;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
            }
    
    

    已经在配置里出现了 qyh 就算文件名取 qyhyc 、qyh_yc都不行的 因为已经带了qyh这个字样开头

    相关文章

      网友评论

          本文标题:nginx踩坑

          本文链接:https://www.haomeiwen.com/subject/kqzsmktx.html