I'm running Apache 2.4.39 with
mod_proxy on FreeBSD. I use this config to forward the requests to some remote web servers (IIS). All of them work fine, except one (the others are configured the same):
<VirtualHost 192.168.0.112:80 10.75.2.130:8001> ProxyPreserveHost On ProxyPass "/" "http://192.168.7.112/" ProxyPassReverse "/" "http://192.168.7.112/" ServerName 192.168.0.112 </VirtualHost>
It works, but sometimes it just returns a blank page for some minutes (and it automatically gets fixed). I thought it is related to the number of connections, so I activated the
mpm_worker_module with this config:
<IfModule mpm_worker_module> ServerLimit 256 StartServers 64 MaxRequestWorkers 1024 MinSpareThreads 128 MaxSpareThreads 512 ThreadLimit 1024 ThreadsPerChild 1024 </IfModule>
which is more than enough. But it didn't fix the problem. I also tried to increase the proxy timeout to half an hour, but with no luck.
Sample log output when it returns a blank page:
192.168.100.75 - - [07/Oct/2019:06:47:57 +0000] "GET / HTTP/1.1" 200 - 192.168.100.75 - - [07/Oct/2019:06:47:57 +0000] "GET /favicon.ico HTTP/1.1" 404 1245
I should note that, the IIS web server works fine when accessed directly, so the problem must be with Apache.