apache 서버 에러페이지 바꾸기 + 예제 에러 짤방 리눅스

일단은 젠투 기준으로 작성했다. 다른 배포판에서는 설정파일이 다를수 있다

/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"같은 식으로 설정했다

그럼 보너스로 에러페이지에 사용가능한 이미지 예제이다






트랙백

이 글과 관련된 글 쓰기 (트랙백 보내기)
TrackbackURL : http://nixcoder.egloos.com/tb/3328980 [도움말]

덧글

댓글 입력 영역