Hi

we have faced an issue on using Apache as HTTP/2 proxy.

It is found that the port address of the pseudo-header :authority is being
removed after passing through the Apache server.

Before entering Apache
:authority=www.abc.com:8080

After leaving Apache
:authority=www.abc.com

Any idea why Apache proxy removed the port portion and any suggestion on
how to resolve it?


Below is the sample setup on the VirtualHost

<VirtualHost 127.0.0.1:8100>
    ProxyPreserveHost On

    Protocols h2 h2c
    ProtocolsHonorOrder Off
    H2Direct on

    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 270

    SetEnvIf Host "(.*)" var1=$1

    ProxyAddHeaders Off
    RequestHeader unset host

    ProxyPass / h2c://10.10.1.11:8081/
    ProxyPassReverse / h2c://10.10.1.11:8081/

    <Proxy "h2c://10.10.1.11:8081/">
        ProxySet connectiontimeout=600 timeout=60
    </Proxy>

    ServerName 127.0.0.1

</VirtualHost>

- RBK

Reply via email to