Day: March 29, 2012

Change 404 Page on Apache – Linux

Use the ErrorDocument directive in your conf file to set a custom error message. The easiest way to do this: Create a file with your custom error message. Save it in: vim /var/www/not_found.html  Edit  vim /etc/apache2/httpd.conf : Find the line that says: #ErrorDocument 404 /not_found.html Remove the leading “#”. ErrorDocument 404 /not_found.html Save.  Restart apache. […]