index.html이 있는데 찾지 못하고 403 Forbidden (CentOS)
centos 4.3 (with selinux) 사용중입니다.
blabla/index.html 로 접근하면 잘 보이는데, blabla/로 접근하면 403 Forbidden이 뜹니다.
로그에는 다음과 같이 남습니다
Directory index forbidden by rule: 어쩌구 저쩌고 절대 경로
index.html으로 직접 접근하면 되는데 Directory index를 요구하니 이상하네요.. selinux 설정과 상관 없을 것 같은데. 혹시나 해서 755로 read 권한을 디렉토리에 줘봤지만 상관 없네요;
...신기합니다. index.php는 되는군요.. 설정파일을 뒤져보고 있습니다 -o-
DirectoryIndex 지시어는 두번 사용하면 뒤에 것이 덮어 쓰게 되나요? 음.. (양쪽에 다 index.html과 index.php를 두어도 문제는 해결되지 않는군요..)
관련 설정 올립니다.
AllowOverride FileInfo AuthConfig Limit Options SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Order deny,allow Deny from all
Options Indexes
Options Indexes가 빠져서 (또는 -Indexes로 되어 있어서) 그런 게 아닌가 싶은데요.
If a URL which maps to a
If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.
http://httpd.apache.org/docs/2.0/mod/core.html#options
DirectoryIndex에는 index.html이 지정되어 있는 상태입니다. index.php로 바꿔놓으면 되더군요 -o-
그리고 저도 읽다가 알았는데 +,-는 쓰지 말라는 듯하는 군요~
Warning
Mixing Options with a + or - with those without is not valid syntax, and is likely to cause unexpected results.
찾았습니다! 상위
찾았습니다!
상위 디렉토리에서 .htaccess에서 DirectoryIndex를 index.php만 지정해버렸습니다. -o- drupal의 하위 디렉토리였는데, drupla의 .htaccess에 다음과 같은 내용이 있습니다.
해결은.. 사용할 디렉토리의 .htaccess에 index.html로 명시해줬습니다 :)
댓글 달기