I need help with our NGINX set up

zen zenitram quickfire28 at gmail.com
Wed May 1 05:35:32 UTC 2024


We dont use PHP,  our system use perl cgi.
So the problem is in cgi?


On Wed, May 1, 2024, 8:57 AM Dan Swaney <justdan23 at gmail.com> wrote:

> The clue is with the URL which failed.
>
> From first look, you appear to be using a FAST CGI URL with PHP?
>
> Just a wild guess, but try using:
> ```
>
> fastcgi_param PHP_VALUE "upload_max_filesize = 500M \n post_max_size=500M"
>
> ```
>
> Here is a reference link mentioning it:
> https://serverfault.com/a/704209
>
> On Tue, Apr 23, 2024, 4:49 AM zen zenitram <quickfire28 at gmail.com> wrote:
>
>> Good day!
>>
>> Here is what happen when we try to upload file more than 128 kb. Too
>> check if it is on server side we run the server without nginx and it can
>> upload larger size files.
>>
>> Thank you!
>>
>>
>>
>> On Fri, Apr 19, 2024 at 6:18 PM Reinis Rozitis via nginx <nginx at nginx.org>
>> wrote:
>>
>>> > It only accepts maximum of 128 kb of data, but the
>>> client_max_body_size 500M;. Is there a way to locate the cause of error.
>>>
>>> Can you actually show what the "error" looks like?
>>>
>>> The default value of client_max_body_size is 1M so the 128Kb limit most
>>> likely comes from the backend  application or server which handles the POST
>>> request (as an example - PHP has its own post_max_size /
>>> upload_max_filesize  settings).
>>>
>>>
>>>
>>> p.s. while it's unlikely (as you specify the settings in particular
>>> location blocks) since you use wildcard includes it is always good to check
>>> with 'nginx -T' how the final configuration looks like. Maybe the request
>>> isn't handled in server/location block where you expect it ..
>>>
>>> rr
>>> _______________________________________________
>>> nginx mailing list
>>> nginx at nginx.org
>>> https://mailman.nginx.org/mailman/listinfo/nginx
>>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> https://mailman.nginx.org/mailman/listinfo/nginx
>>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240501/85795597/attachment.htm>


More information about the nginx mailing list