I have Apache 2.2 running on CentOS 6.4
There is application in / directory and folder where are some files, lets say it is /public.
I need to allow access to / directory to ip1, ip2, ip3 and allow access to /public folder to ip1, ip2, ip3, ip4, ip5. And ip5 and ip4 are not allowed to access to /.
I tried to do it with this config:
<Location / >
Require ip ip1 ip2 ip3
</Location>
Alias /public /some/path
<Directory /some/path>
Options +Indexes
Require ip ip1 ip2 ip3 ip4 ip5
</Directory>
But ip4 and ip5 cannot access /public folder.
How can I grant access to this IP adresses?
UPD1
If I use
<Location /some/path>
Require ip ip1 ...
</Location>
instead of using Alias and Directory, then I have access, but there is no list of files in browser. Seems, that I should use instead, but then I have no access to this directory.