Reic,
On 8/4/21 11:17, Eric Covener wrote:
On Wed, Aug 4, 2021 at 11:08 AM Christopher Schultz
<ch...@christopherschultz.net> wrote:
All,
Can httpd automatically set Keep-Alive response header based upon the
KeepAlive and other configuration settings?
Something like this:
HTTP/1.1 200 OK
Server: Apache/2
Date: Wed, 04 Aug 2021 15:00:00 GMT
Content-Length: 12345
Connection: keep-alive
Keep-Alive: timeout=5; max=100
I'm interested in httpd generating that last response-header for me.
httpd does generate this by default, matching your settings. You will
even see the "max" tick down.
Hmm. I'm not seeing that. I'm using httpd 2.4.48 as provided by Amazon
Linux's yum repository.
$ wget -SO /dev/null https://my.site/
HTTP/1.1 200 200
Cache-Control: no-cache, no-store, must-revalidate
Content-Type: text/html;charset=UTF-8
Date: Wed, 04 Aug 2021 16:57:00 GMT
Expires: 0
Permissions-Policy: interest-cohort=()
Pragma: no-cache
Server: Apache/2
Strict-Transport-Security: max-age=15552000
X-Content-Type-Options: nosniff
Content-Length: 10799
Connection: keep-alive
I will note that it's going through Amazon's Elastic Load balancer, so
perhaps the header is being stripped.
The connection is also using mod_jk to proxy to an Apache Tomcat
instance. Could the Keep-Alive header be suppressed due to that kind of
proxying?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org