apache - доступ в поддиректории
Добавлено: 2011-07-07 16:59:25
Код: Выделить всё
<Directory /usr/local/www/clients/project/data>
Options SymLinksIfOwnerMatch IncludesNoExec
AllowOverride FileInfo
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /www/clients/.htpasswd
AuthGroupFile /www/clients/.htgroups
Require group projectgr
Satisfy Any
Order allow,deny
Deny from all
Allow from X.X.X.X
</Directory>
надо закрыть доступ всем в /usr/local/www/clients/project/data/scripts. делаю так:
Код: Выделить всё
<Directory /usr/local/www/clients/project/data>
Options SymLinksIfOwnerMatch IncludesNoExec
AllowOverride FileInfo
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /www/clients/.htpasswd
AuthGroupFile /www/clients/.htgroups
Require group projectgr
Satisfy Any
Order allow,deny
Deny from all
Allow from X.X.X.X
</Directory>
<Directory /usr/local/www/clients/project/data/scripts>
Order allow,deny
Deny from all
</Directory>как-то можно сделать чтобы для data/scripts работало только "Deny from all"