Apache?ERR_INCOMPLETE_CHUNKED_ENCODING 200

Apache?ERR_INCOMPLETE_CHUNKED_ENCODING 200

我已经尝试了好几天来找出为什么会发生以下错误:

 GET https://www.******.com/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)

我也看过一些类似的问题,但都帮不上忙。这个错误只发生在我的主页上,但在网络上的其他 URL 上一切正常。

这些是我的服务器的特点:

  • Apache/2.4.18(Ubuntu)
  • PHP 7.2
  • PHP-FPM
  • Symfony 4 中的应用程序
  • ISPConfig 3 面板

更新:

我意识到问题出在这一行 FallbackResource /index.php 中,如果我删除它,它就可以正常工作,但是其他路由/URL 就不起作用了,只有主页,所以我不明白为什么会发生这种情况,以及如何解决它。

VHOST 配置:

<Directory /var/www/******.com>
    AllowOverride None
    Require all denied
</Directory>

<VirtualHost 1.1.1.1:443>

        DocumentRoot /var/www/clients/client0/web1/web/public

        ServerName ******.com
        ServerAlias www.******.com
        ServerAdmin webmaster@******.com
        SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

         ErrorLog /var/log/apache2/******_error.log
         CustomLog /var/log/apache2/******_access.log combined

        <IfModule mod_ssl.c>
            SSLEngine on
            SSLProtocol All -SSLv2 -SSLv3
            # SSLCipherSuite          ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
            SSLHonorCipherOrder     on
            # <IfModule mod_headers.c>
            # Header always add Strict-Transport-Security "max-age=15768000"
            # </IfModule>
            SSLCertificateFile /var/www/clients/client0/web1/ssl/******.com-le.crt
            SSLCertificateKeyFile /var/www/clients/client0/web1/ssl/******.com-le.key
            SSLCertificateChainFile /var/www/clients/client0/web1/ssl/******.com-le.bundle
            SSLUseStapling on
            SSLStaplingResponderTimeout 5
            SSLStaplingReturnResponderErrors off
        </IfModule>

        <Directory /var/www/clients/client0/web1/web>
            # Clear PHP settings of this website
            Options +FollowSymLinks
            AllowOverride All
            Require all granted
            FallbackResource /index.php
        </Directory>
        <FilesMatch \.php$>
            SetHandler proxy:unix:/var/lib/php7.2-fpm/web1.sock|fcgi://localhost
        </FilesMatch>

        # suexec enabled
        <IfModule mod_suexec.c>
            SuexecUserGroup web1 client0
        </IfModule>


        # add support for apache mpm_itk
        <IfModule mpm_itk_module>
            AssignUserId web1 client0
        </IfModule>

        <IfModule mod_dav_fs.c>
        # Do not execute PHP files in webdav directory
            <Directory /var/www/clients/client0/web1/webdav>
                <ifModule mod_security2.c>
                    SecRuleRemoveById 960015
                    SecRuleRemoveById 960032
                </ifModule>
                <FilesMatch "\.ph(p3?|tml)$">
                    SetHandler None
                </FilesMatch>
            </Directory>
            DavLockDB /var/www/clients/client0/web1/tmp/DavLock
            # DO NOT REMOVE THE COMMENTS!
            # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
            # WEBDAV BEGIN
            # WEBDAV END
        </IfModule>

</VirtualHost>

<IfModule mod_ssl.c>
        SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>

希望您能帮助我。非常感谢。

相关内容