- 작성시간 : 2009/09/27 21:31
- 퍼머링크 : nixcoder.egloos.com/3328980
- 덧글수 : 0
일단은 젠투 기준으로 작성했다. 다른 배포판에서는 설정파일이 다를수 있다
위쪽에 보면 다음과 같은 내용이 있다.
#ErrorDocument 404 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
다음과 같은 형식이다
ErrorDocument <ErrorCode> ("Message"|"/errorPagePath"|url)
알아서 적절한 것을 에러번호에 적절한 페이지를 할당하면 된다
내 경우는 이미지를 띄우기 위해서
그럼 보너스로 에러페이지에 사용가능한 이미지 예제이다




/etc/apache2/modules.d/00_error_documents.conf
위쪽에 보면 다음과 같은 내용이 있다.
#ErrorDocument 404 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
다음과 같은 형식이다
ErrorDocument <ErrorCode> ("Message"|"/errorPagePath"|url)
알아서 적절한 것을 에러번호에 적절한 페이지를 할당하면 된다
내 경우는 이미지를 띄우기 위해서
ErrorDocument 404 "/OdukError/404.gif"같은 식으로 설정했다
그럼 보너스로 에러페이지에 사용가능한 이미지 예제이다








덧글