티스토리 뷰

WEB,WAS/Web Server

[Apache] ErrorDocument 설정

빼인트 2010. 7. 17. 06:18

정의
지정한 HTTP 상태 코드를 받으면 설정한 text나 URL로 Redirect한다.

설정법
ErrorDocument [응답코드] [text또는 URL경로]


사용 예
ErrorDocument 500 "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

'WEB,WAS > Web Server' 카테고리의 다른 글

Apache Accesslog에서 특정 IP는 로그에 안남기기  (0) 2010.10.04
[Apache] (MPM) Perfork / worker  (0) 2010.07.17
[Apache] KeepAlive 설정  (0) 2010.07.17
[Apache] Alias  (0) 2010.07.17
[Apache] Mime-type 설정  (0) 2010.07.17
[Apache] Redirect 설정  (0) 2010.07.17
[Apache] LogLevel  (0) 2010.07.17
[Apache] Welcome-file 설정  (0) 2010.07.17
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함