아파치 httpd.conf 관련 내용입니다.

mold76의 이미지

아파치의 httpd.conf 문서 파일에서 아래와 같이 있는데요 혹시
해당 디렉토리에 (예를 들어 /tmp 디렉토리에서)index.html 과 index.php 파일이 있을때
url 이 /tmp/ 이런식으로 끝날때에 현재 index.html 문서가 나오는데요 index.php 파일이
나오게 할수 있는 방법이 없을까요? 조언 좀 부탁드립니다.

DirectoryIndex index.html index.htm index.php index.php3 index.cgi

gorinux의 이미지

순서를 바꿔주시면 되요

DirectoryIndex index.php index.html index.htm index.php3 index.cgi

mold76의 이미지

답변 감사합니다. 좋은 하루 되세요. ^^