Я хочу дать доступ к file1.php и file2.php от каждого (0.0.0.0/0) и дать доступ ко всем остальным файлам в определенном каталоге только из подсети 192.168.1.0/24. Я попробовал следующий конфиг, который не работал:
<Files ".htaccess">
deny from all
</Files>
<Files "file1.php">
order allow,deny
allow from all
</Files>
<Files "file2.php">
order allow,deny
allow from all
</Files>
<FilesMatch ".*">
order deny,allow
deny from all
allow from 192.168.1.
</FilesMatch>
Результат: файлы file1.php и file2.php открываются только из подсети 192.168.1.0/24.