>> Edit article
이름
제목
패스워드
아파치 1.3.26과 php 4.2.3을 설치했습니다. 설치한 버전과 관계없이 항상 그렇던건데요, 이제서야 질문을 하네요. httpd.conf에 ErrorDocument 404 /missing.html 이라고 있는데요. 이걸 설정해도 제대로 missing.html 파일이 안 보입니다.. 더구나 에러로그를 보면 더 이해가 안가는데요, 만약 missing.html을 만들어놓고 없는 페이지를 요청하면 [Thu Sep 19 16:50:51 2002] [error] [client xxx.xxx.xxx.x] File does not exist: /usr/local/apache/htdocs/aa33a.html 이렇게만 나옵니다. 해서, missing을 요청하지 않는건가 하고 missing.html을 리네임 해주면, [Thu Sep 19 16:50:51 2002] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/local/apache/htdocs/aa33a.html [Thu Sep 19 16:50:51 2002] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/local/apache/htdocs/missing.html 이렇게 아예 대놓고 없다고 나옵니다.. 이런걸로 봐서 missing.html을 찾는거 같기는 한데.. 404 페이지는 계속 나오고.. ErrorDocument 404 http://xxxx 이렇게 써주면 제대로 되긴 합니다만 URL이 바뀌어버리더군요.. 뒤져보니 외부로 리다이렉트 할 경우에는 ErrorDocument가 아니라 Redirect 404 http://xxxx 이렇게 해주면 URL 안 바뀌로 리다이렉트가 된다고 하던데.. 이것도 안되긴 마찬가지.. 왜 ErrorDocument가 안되는지 정말 답답합니다.. 도와주세요..
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved