1. Intro
404 등의 에러가 발생할 경우 redirection 설정하는 방법
주요 에러코드에 대해서 설정해보자.
2. HTTP ErrorCode
| Code | Description |
| 400 | Bad Request |
| 403 | Forbidden |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 406 | Not Acceptable |
| 408 | Request Time-out |
| 500 | Internal Server Error |
3. How to do
sudo vi /etc/apache2/sites-available/000-default.conf ; 또는 해당 도메인의 conf 파일
ErrorDocument [에러코드 3자리] [연결 경로 or URL]
ErrorDocument 400 https://www.google.de
ErrorDocument 403 https://www.google.de
ErrorDocument 404 https://www.google.de
ErrorDocument 405 https://www.google.de
ErrorDocument 406 https://www.google.de
ErrorDocument 408 https://www.google.de
ErrorDocument 500 https://www.google.de
sudo service apache2 restart