Set 404 error page on the Apache server
Set based on ubuntu 16.04 system using apache
Configuration Steps
- Add 404 pages
在所配置网站的根目录添加编辑好的 404.html
- Modify localized-error-pages.conf profile
localized-error-pages.conf位于 /etc/apache2/conf-enabled目录下
把#ErrorDocument 404 /404.html 去掉#
- Restart apache server
/etc/init.d/apache2 restart #重启