Alias /xcache /usr/share/xcache
<Directory /usr/share/xcache>
- Allow from 127.0.0.1
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Allow from 127.0.0.1
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require local
+ </IfModule>
</Directory>