Comment 0 for bug 2068529

Revision history for this message
Wesley Hershberger (whershberger) wrote : Focal: Reverse proxy POST with with body length >1000 is missing body

POST requests to an apache2 server with the below configuration do not forward the message body.

Affected versions:
apache2 2.4.41-4ubuntu3.17 in focal

Steps to reproduce:

sudo apt-get install apache2
sudo a2enmod proxy
sudo a2enmod proxy_http

Add /etc/apache2/sites-enabled/test_proxy.conf
```
Listen 9443
<VirtualHost *:9443>
        ServerName focal.cld.lan

        ProxyRequests Off
        ProxyPass "/" "http://127.0.0.1:8899/"
        ProxyPassReverse "/" "http://127.0.0.1:8899/"

        ErrorLog ${APACHE_LOG_DIR}/testproxy-error.log
        CustomLog ${APACHE_LOG_DIR}/testproxy-access.log combined
</VirtualHost>
```

sudo systemctl restart apache2
nc -k -l 8899

wget http://archive.ubuntu.com/ubuntu/dists/jammy-proposed/InRelease
curl -d "@InRelease" -H "Content-type: text/plain" -X POST http://127.0.0.1:9443/

Curl hangs for a while until the request times out.