nginx 405 not allowed问题解决方法

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

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   /mnt/svnhouse/publish;
            index  index.html;
            error_page 405 =200  $request_uri;
        }

发布了227 篇原创文章 · 获赞 94 · 访问量 54万+

猜你喜欢

转载自blog.csdn.net/wiborgite/article/details/93658967