| 404 Not Found 페이지 바꾸기 |
| 글 쓴 이 |
linux |
| 날 짜 |
2003년 01월 15일 18시 55분 24초 |
| 본 문 |
Q. apache의 버전을 보이지 않게 하려면?
A. httpd.conf에 다음을 추가한다.
ServerTokens ProductOnly
ErrorDocument 404 "Not Found
1) plain text
ErrorDocument 500 "The server made a boo boo.
# n.b. the (") marks it as text, it does not get output
2) local redirects
ErrorDocument 404 /missing.html
# to redirect to local url /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# n.b. can redirect to a script or a document using server-side-includes.
#
3) external redirects
ErrorDocument 402 http://other.server.com/subscription_info.html
이게 좀 밋밋해서 싫은 사람은 다음과 같이 redirection시켜도 된다. 물론 missing.html은 DocumentRoot 아래에 존재해야 한다.
ErrorDocument 404 /missing.html (url입력)
|
|
|
|