Apache KeepAlive in child location not working
- by Mark Beaton
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...