Welcome! Log In Create A New Profile

Advanced

Re: Problem with client_max_body_size

dast@c-base
February 05, 2013 10:04AM
Hi Basti,

thanks for ur answer.

no - its no PHP involved.

Its only proxy to apache localhost:8080 where the mod_dav_svn handles the request.

best regards,
daniel.

Am 05.02.2013 um 15:51 schrieb basti <black.fledermaus@arcor.de>:

> If your site use PHP so have a look on your php.ini
>
> there are 2 param's:
>
> upload_max_filesize
> post_max_size
>
>
>
> Am 05.02.2013 15:08, schrieb dast@c-base:
>>
>> Hi,
>>
>> i want to use Nginx with apache2 and mod_dav_svn for hosting my SVN Repository via https.
>>
>> But i have problems on commit large files.
>>
>> On a 8MB ffmpeg binary commit, my SVN client brings this error:
>> Commit failed (details follow):
>> Server sent unexpected return value (413 Request Entity Too Large) in response to PUT request for '/svn/repo1/!svn/wrk/b2f0560a-05fd-427c-9039-d47dea9ff9c4/path/ffmpeg'
>>
>>
>> The Nginx error log says:
>>
>>
>> 2013/02/05 14:20:25 [error] 22931#0: *2693 client intended to send too large body: 8309431 bytes, client: 93.220.123.123, server: mydomain.com, request: "PUT /svn/repo1/!svn/wrk/b2f0560a-05fd-427c-9039-ababea9ff9c4/path/ffmpeg HTTP/1.1", host: "mydomain.com"
>>
>>
>> And nothing about the request in the apache logs.
>> So i think the nginx blocks the request, not the proxy to apache.
>>
>>
>> The Requests to the Nginx goes over HTTPS:
>>
>> https://public-domain.com/svn/ (nginx) <> routing to http://localhost:8080 (apache2)
>>
>>
>> My Nginx config already has client_max_body_size 256M; in the nginx.conf inside http { } and server { } in the vost site config.
>> But it does not helps or is ignored.
>>
>> i have searched all other nginx configfiles for "client_max_body_size" without succes:
>>
>> #> grep -R 'client_max_body_size' ./*
>> ./nginx.conf: client_max_body_size 256M;
>> ./sites-available/443_mydomain.com: client_max_body_size 256M;
>> ./sites-available/443_mydomain.com: client_max_body_size 256M;
>> ./sites-enabled/443_mydomain.com: client_max_body_size 256M;
>> ./sites-enabled/443_mydomain.com: client_max_body_size 256M;
>>
>>
>> my site config file:
>>
>>
>> server {
>> listen 443;
>> server_name mydomain.com;
>>
>> client_max_body_size 256M;
>>
>> ssl on;
>> ssl_certificate /path/ssl-cert/nginx/mydomain.com.2013-01.cacert.crt;
>> ssl_certificate_key /path/ssl-cert/nginx/mydomain.com.2013-01.key;
>>
>> access_log /path/logs/nginx.https.mydomain.com.access.log;
>> error_log /path/logs/nginx.https.mydomain.com.error.log debug;
>>
>> root /path/htdocs/mydomain.com;
>> index index.php index.html;
>>
>> location / {
>> try_files $uri $uri/ /index.php;
>> }
>>
>> location /svn {
>> client_max_body_size 256M;
>> keepalive_timeout 60;
>> include /etc/nginx/proxy_params;
>> proxy_pass http://127.0.0.1:8080;
>> set $dest $http_destination;
>> if ($http_destination ~ "^https://(.+)") {
>> set $dest http://$1;
>> }
>> proxy_set_header Destination $dest;
>> }
>>
>> }
>>
>>
>> So, what can i check?
>> What is wrong in my config?
>> Why is client_max_body_size ignored?
>> Does client_max_body_size not work on https?
>> Does client_max_body_size not work on PUT requests?
>>
>> After 2 days of testing i hav no idea that to check. :(
>>
>> best regards,
>> Daniel.
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with client_max_body_size

dast@c-base February 05, 2013 09:10AM

Re: Problem with client_max_body_size

dast@c-base February 05, 2013 09:42AM

Re: Problem with client_max_body_size

basti February 05, 2013 09:54AM

Re: Problem with client_max_body_size

dast@c-base February 05, 2013 10:04AM

Re: Problem with client_max_body_size

Maxim Dounin February 05, 2013 10:10AM

Re: Problem with client_max_body_size

dast@c-base February 05, 2013 10:24AM

Re: Problem with client_max_body_size

Maxim Dounin February 05, 2013 10:44AM

Re: Problem with client_max_body_size

dast@c-base February 05, 2013 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready