net::ERR_INVALID_CHUNKED_ENCODING 200 (OK)

Discussion in 'Apache' started by cberger, Jul 23, 2019.

  1. #1
    Good afternoon all,

    I'm currently creating a brand new apache reverse proxy on apache 2.4.39 (the former one runs 2.2).
    My config syntax is fine (double checked with -t), the proxy job is done by apache, the daemon is up and running, however I get "blank pages" displayed for some vhosts.

    Troubleshooting actions :
    Try to curl http(s)://theRemoteURL --> worked fine, so it's not due to ACLs
    Checked apache's logs --> nothing related

    When I display the web browser developper tools, I get this message :
    net::ERR_INVALID_CHUNKED_ENCODING 200 (OK)

    My server is running Solaris 11.4, and I have multiple vhosts configured.
    Here's one of them :

    <VirtualHost *:80>
        ProxyRequests off
        ProxyPreserveHost on
        ServerName MYSITE.TEST.COM
        Redirect permanent / https://MYSITE.TEST.COM/
    </VirtualHost>
    
    <VirtualHost *:443>
        ServerName MYSITE.TEST.COM
        ProxyPreserveHost on
        SSLEngine On
        SSLProtocol ALL -SSLv2 -SSLv3
        SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:!RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM;
        SSLHonorCipherOrder on
        Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
        <Proxy *>
            AddDefaultCharset Off
            Require all granted
        </Proxy>
        <Location /phpmyadmin>
            AddDefaultCharset Off
            Require ip 1.2.3.4
            Require ip 2.3.4.5
            Require ip 3.4.5.6
        </Location>
        ProxyPass /PJ !
        ProxyPass / http://THEWEBSERVER/
       
        ErrorLog "/etc/opt/csw/apache2/logs/error_MYSITE.TEST.COM_443.log"
        TransferLog "/etc/opt/csw/apache2/logs/access_MYSITE.TEST.COM.log"
        CustomLog "|/usr/bin/logger -t apache -i -p local6.notice" combined
    </VirtualHost>
    Code (markup):
    Any idea ?
     
    cberger, Jul 23, 2019 IP
  2. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #2
    This could be due to returning the response from proxy service to the browser that response contained the header Transfer-Encoding: chunked try to remove that header before sending the response back to the browser.
     
    hostechsupport, Jul 31, 2019 IP
  3. cberger

    cberger Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thanks for the answer.

    How to remove this header, as I didn't specify anything about it ?
     
    cberger, Jul 31, 2019 IP