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 "/" ""
        ProxyPassReverse "/" ""

        ErrorLog ${APACHE_LOG_DIR}/testproxy-error.log
        CustomLog ${APACHE_LOG_DIR}/testproxy-access.log combined

sudo systemctl restart apache2
nc -k -l 8899

curl -d "@InRelease" -H "Content-type: text/plain" -X POST

Curl hangs for a while until the request times out.