문서의 이전 판입니다!
<Directory /> Options Indexes FollowSymLinks AllowOverride All </ Directory>
<Directory /> Options FollowSymLinks AllowOverride All </ Directory>
혹은
<Directory /> Options -Indexes FollowSymLinks AllowOverride All </ Directory> ==== Virtual Hosting ==== - 아파치설정에서 Virtual Hosting 을 하고 있다면 Apache <Directory> 설정 바꾸기를 추천한다. ===== 설정예제 ===== - 아래는 adminschool.net의 apache 설정파일이다. \\ http://adminschool.net 의 모든 디렉토리 보기는 막혀있고, http://adminschool.net/images 만 디렉토리 보기가 허용된 상태이다. \\ <code apache> <VirtualHost *:80> ServerName www.adminschool.net ServerAlias adminschool.net DocumentRoot /html/adminschool/ ServerAdmin webmaster@adminshcool.net <Directory /html/adminschool> Options -Indexes </Directory> <Directory /html/adminschool/images/> Options Indexes </Directory> <IfModule mod_suphp.c> suPHP_Engine on </IfModule> ErrorLog /var/log/apache2/www.adminschool.net-error.log CustomLog /var/log/apache2/www.adminschool.net-access.log combined env=!dontlog </VirtualHost>