Can I disable keepalive if my site is being accessed through a proxy?
Site is served by nginx on linux, some dynamic parts are proxied to local Apache.
If not possible for all proxies in general, can I do that for specific IP address?
So far I did this:
location / {
root /var/www;
if ($remote_addr = 127.0.0.1) {
rewrite ^(.*) /no-keep-alive/$1 last;
}
}
location ^~ /no-keep-alive/ {
# you'll have to create a sym link here so that root will be the same
root /var/www/no-keep-alive;
keepalive_timeout 0;
}