Need to enable Indexes in apache 2.4 throughh htaccess based on IP.
For example, IP 192.168.x.x
I tried putting the directive in the apache2.conf file like:
<Directory /var/vhosts/lubrigard.com>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
then
<Directory /var/vhosts/lubrigard.com>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require ip 192.168
</Directory>
However for any other IP it was denying any access to the folder.
So I disabled Indexes site wide and want to put an .htaccess file to enable Indexes for the internal IP addresses. Unless someone can tell me how to do it within the apache2.conf file.