408请求超时,Apache

问题描述 投票:1回答:1

我无法上传较大的文件。该应用程序基于在cgi上运行的Perl。

日志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?).

日志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/

获取

“ 408请求超时”,而上传了3 MB以上的文件!

使用Web Centos面板的CentOS 7

<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

什么都没有!


如果我在httpd.conf中使用LimitRequestBody 102400而不是超时,则会显示Request Entity Too Large错误。

apache perl cgi
1个回答
0
投票

对我来说,上传过程似乎正在等待某些东西。您是否检查过防火墙,权限....类似的东西。

© www.soinside.com 2019 - 2024. All rights reserved.