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.
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
ProxyPass "/" "http://
ErrorLog ${APACHE_ LOG_DIR} /testproxy- error.log LOG_DIR} /testproxy- access. log combined
CustomLog ${APACHE_
</VirtualHost>
```
sudo systemctl restart apache2
nc -k -l 8899
wget http:// archive. ubuntu. com/ubuntu/ dists/jammy- proposed/ InRelease 127.0.0. 1:9443/
curl -d "@InRelease" -H "Content-type: text/plain" -X POST http://
Curl hangs for a while until the request times out.