|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Andriy Bondar 2:5020/400 23 Oct 2002 21:22:16 To : All Subject : apache: index.php access.conf .htaccess --------------------------------------------------------------------------------
Здравствуй Алл!
Есть: apache, папки пользователей ~/public_html, виртуальные хосты.
Виртуальны хосты админятся другими пользователями. Доступ к
директориям/файлам выставляется в .htaccess. Hо есть проблема.
Первая. С вирт. хостов не грузятся index.php. index.html -
нормально.
Вторая: При запросе папки в которой нет index.html, но есть
index.php, выпадает весь список папок. Можно по них бродить
как в Explorer'е по винде.
-- begin access.conf --
<Directory /usr/local/www/data_noc>
AllowOverride FileInfo AuthConfig Limit
Options Indexes FollowSymLinks MultiViews
</Directory>
UserDir disable
UserDir enable andrew jcrow etc
-- end access.conf --
-- begin .htaccess --
# Это пришлось убрать, иначе не работает.
#<Directory /usr/local/www/data_noc>
# AllowOverride FileInfo AuthConfig Limit
# Options Indexes FollowSymLinks MultiViews
#</Directory>
<Files subnets.html>
Order Deny,Allow
Deny from all
Allow from 192.168.33.47
</Files>
-- end .htaccess --
Третья: Если побороть вторую проблему прописав в .htaccess
опцию <Directory> ... </Directory> - то не работает доступ!
Зато при запрсе www.noc/rozklad - дает отлуп 403. Хотя там
опят же есть index.php.
-- begin access.conf --
<Directory /usr/local/www/data_noc>
AllowOverride None
Options Indexes FollowSymLinks MultiViews
</Directory>
UserDir disable
UserDir enable andrew jcrow etc
-- end access.conf --
-- begin .htaccess --
<Directory /usr/local/www/data_noc>
AllowOverride FileInfo AuthConfig Limit All
Options Indexes FollowSymLinks MultiViews
</Directory>
<Files subnets.html>
Order Deny,Allow
Deny from all
Allow from 192.168.33.47
</Files>
-- end .htaccess --
Вот так донастраивался... :-|
Never say die.
--
Sincerely yours, Andrew Cooper
--- ifmail v.2.15dev5
* Origin: Kirovograd State Pedagogical University (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/11410ca6d4d75.html, оценка из 5, голосов 10
|