「이전했습니다」페이지를 만드는 방법【웹 서버의 이전】
404 Not Found 대신 자신의 페이지, '이전됨' 표시
개요
구체적으로 말하면 ...
VisualStudioCode에서 HTML 문서를 만듭니다.

덧붙여서 웹 브라우저로 표시시키면 이렇게 된다.

삭제하다
거의 모든 html 파일을 삭제합니다.
index.htm도 지우자.
sudo rm /var/www/html/*
업로드
이번에는 TeraTerm을 통해 업로드합니다.

SCP 대상에/var/www/html/을 쓰고,

Enter를 누르십시오.
시험에 저장처를 표시해 보았다.

404NotFound.htm 이외의 html 파일도 삭제되었습니다.
httpd.conf를 괴롭힌다.
sudo nano /etc/httpd/conf/httpd.conf
를 입력합니다.
그러면 ↑과 같이 표시된다고 생각한다.
이 설정 파일 중,
#ErrorDocument 404로 시작하는 행에 주목한다.
#을 제거하십시오. 그러면
ErrorDocument 404 /404NotFound.htm
를 입력합니다.
Ctrl + x를 입력하고,

Enter를 눌러

한 번 더 Enter를 누르십시오.
service httpd restart
를 입력합니다.
비밀번호를 입력하십시오.

그러면 브라우저에서 적절하게 html 파일에 URL을 입력해도
「이전했습니다.」라고 표시됩니다.

끝.
여담이지만・・・
시도하지 않지만, 아마도 403 Forbidden의 페이지도 어떠한 「이전했습니다」라고 하는 이전 통지의 HTML 파일로 바꾸면 어떠한 cgi에 액세스했을 경우도 제대로 안내할 수 있지 않을까요.
Reference
이 문제에 관하여(「이전했습니다」페이지를 만드는 방법【웹 서버의 이전】), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/SQUP/items/658588a2df58dc4f23c4텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)