SVN Commit的時候提示Unexpected HTTP status 413 'Request Entity Too Large' on xxxx

本地svn做了通過http協議訪問,通過nginx轉發http地址 ,在上傳文件的時候提示

Commit failed (details follow):

Unexpected HTTP status 413 'Request Entity Too Large' on

xxxx

解決方法:

在nginx的conf.d裏配置的conf文件增加:

client_max_body_size xxM;

大小可以自己根據上傳文件大小來定義

如:

server {
    client_max_body_size 10000M;
    listen       80;
    server_name  xxxx.xxx;

    location / {
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://10.10.10.66:88;
    }

}
然後重啓nginx服務: sudo nginx -s reload 即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章