Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 apache: index.php access.conf .htaccess   Andriy Bondar   23 Oct 2002 21:22:16 
 Re: apache: index.php access.conf .htaccess   Dmitriy Kyrhlarov   23 Oct 2002 23:10:41 
 Re: apache: index.php access.conf .htaccess   Andriy Bondar   24 Oct 2002 09:32:53 
 Re: apache: index.php access.conf .htaccess   dsci4sta   26 Oct 2002 14:43:51 
 Re: apache: index.php access.conf .htaccess   Andriy Bondar   01 Nov 2002 20:28:21 
 apache: index.php access.conf .htaccess   Andrey Ostanovsky   02 Nov 2002 02:21:02 
 Re: apache: index.php access.conf .htaccess   Demin Alexander   24 Oct 2002 09:59:25 
Архивное /ru.unix.bsd/11410ca6d4d75.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional