Noor Qureshi
Noor Qureshi

Reputation: 11

408 Request Timeout, Apache

I cannot upload larger files. The application is Perl based runs on cgi.

Log 1: public_html/cgi-bin/logs/upload.log

[Thu May 28 14:09:04 2020][5436] [Thu May 28 14:09:04 2020] upload.cgi: CGI.pm: Server closed socket during multipart read (client aborted?).

Log 2: /usr/local/apache/domlogs/example.com.error.log

[Thu May 28 14:14:09.693395 2020] [cgid:error] [pid 16236:tid 139648529569536] (70007)The timeout specified has expired: [client IP:50280] AH01270: Error reading request entity data, referer: https://example.com/

Getting

"408 Request Timeout" while uploading more than 3 MB of file!

CentOS 7 using Web Centos Panel

<VirtualHost IP:80>
ServerName example.com
ServerAlias http://www.example.com
ServerAdmin [email protected]
DocumentRoot /home/domain/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
TimeOut 18000

--------------

<VirtualHost IP:443>
ServerName example.com
ServerAlias http://www.example.com
ServerAdmin [email protected]
DocumentRoot /home/domain/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
TimeOut 18000

Still nothing!


If I use LimitRequestBody 102400 instead of timeout in httpd.conf it shows Request Entity Too Large error.

Upvotes: 1

Views: 1277

Answers (1)

Matthias Reissner
Matthias Reissner

Reputation: 365

For me it seems that the upload process is waiting for something. Do you have checked firewall, permissions .... something like that.

Upvotes: -1

Related Questions