2014-12-29 3 views
1

puphpet에서 apache 가상 호스트에 대한 디렉토리 색인 생성을 사용하는 방법을 모르겠습니다. localhost가 다음과 같이 config.yaml에 정의되어 있습니다. 색인이 작동하지 않는 것 같습니다.꼭두각시에서 파일 및 디렉토리 색인 생성을 사용하는 방법

vhosts: 
    Ow3JtQyukTBm: 
     servername: localhost 
     serveraliases: 
      - localhost 
     docroot: /var/www/ 
     port: '80' 
     override: 
      - All 
     options: 
      - Indexes 
      - FollowSymLinks 
      - MultiViews 
     engine: php 
     custom_fragment: '' 
     ssl_cert: '' 
     ssl_key: '' 
     ssl_chain: '' 
     ssl_certs_dir: '' 

답변

0

vhost 구성에 적절한 경로가있는 "directoryindex"를 추가하기 만하면됩니다.

directoryindex: /dir_to_index/ 

appache 문서 https://forge.puppetlabs.com/puppetlabs/apache 꼭두각시에 따르면

DirectoryIndex에 :

는 클라이언트에서 '/'를 지정하여 디렉토리의 index를 요청할 때 찾아 볼 자원 목록을 설정을 디렉토리 이름의 끝. DirectoryIndex에는 더 많은 정보가 있습니다. 기본값은 'undef'입니다.