Apache KeepAlive in child location not working
Posted
by
Mark Beaton
on Server Fault
See other posts from Server Fault
or by Mark Beaton
Published on 2012-03-30T02:21:41Z
Indexed on
2012/03/30
5:32 UTC
Read the original article
Hit count: 526
apache2
I'm trying to turn keep-alive connections off for a requests to a child folder in Apache, but when I reload the config I get the following error:
KeepAlive not allowed here
Here's my vhost config:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
DocumentRoot /srv/www/mysite
DirectoryIndex index.html
<Location /subfolder>
KeepAlive Off
</Location>
</VirtualHost>
I've tried using <Directory>
as well, but no go there either.
Any ideas? I'd rather not turn keep-alive off for the whole site...
© Server Fault or respective owner