I have a virtualhost setup and I wanted to make custom error pages for it and only it. I don't want the entire apache server host collection to display these types of error pages. I have my virtualhost setup like this
Code:
<IFModule mod_log_config>
<VirtualHost *:80>
ErrorDocument 404 /crash.html
ServerName joomla.baronobeefdip.josh
DocumentRoot /var/www/html
LogFormat "%v %h %l %u %t \"%r\" %>s %b" joomla.baronobeefdip
CustomLog logs/joomla.baronobeefdip joomla.baronobeefdip
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
</IFModule>
The error document exists in the top level directory in the apache virtual host. I also made sure that I did a chown command on it like so.
Code:
chown apache:apache crash.html
I restarted the apache service and browsed to a page that didn't exist on the server (and tried to access a file that I deleted to get the "not found" error page). When the error page appeared it was the page that apache displays by default. I need help trying to get the custom error pages to work as simple as possible.