Apache2 Custom 404 Page

Create a html page

sudo vi /var/www/missing.html

whateveryouwanttosay

sudo chown www-data:www-data /var/www/missing.html

sudo vi /etc/apache2/conf.d/localized-error-pages

Uncomment #ErrorDocument 404 /missing.html

sudo service apache2 restart

You may also like...

Privacy Preference Center