美文网首页
nginx 405 not allowed问题解决方法

nginx 405 not allowed问题解决方法

作者: 一觉睡到丶小时候 | 来源:发表于2020-12-29 17:33 被阅读0次

    在location中增加如下一行内容error_page 405 =200 $request_uri; 如下所示

        server {
            listen       80;
            server_name  likeyou.com;
     
            location / {
                root   /usr/local/nginx/html;
                index  index.html;
                error_page 405 =200  $request_uri;
            }
    

    相关文章

      网友评论

          本文标题:nginx 405 not allowed问题解决方法

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