Nginx

    xiaoxiao2021-03-25  124

    解决访问跳转405问题

    location下加error_page 405 =200  http://$host$request_uri;

    解决访问图片问题

    location下加

    rewrite ^(.*)/DF-Manage/(.*)$ $1/$2 break;       location /userfiles{       root /alidata/www/static;       }

    nginx -t 查看nginx配置是否正确

    nginx -s reload 重新加载配置文件

    转载请注明原文地址: https://ju.6miu.com/read-11663.html

    最新回复(0)