httpd.conf error pages, problems...

i am trying to get error pages set up on my site/server but it does not seem to work.

so far i tried this...

<VirtualHost xx.xx.xx.xx>
ServerName x***********
DocumentRoot "/var/www/html"
AddType application/x-httpd-php .php .html
ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/
ErrorDocument 403 /index.html
ErrorDocument 404 /index.html
</VirtualHost>

i also added an .htaccess file to the root web folder with

ErrorDocument 403 /index.html
ErrorDocument 404 /index.html


but the error pages are not loading

is there something else i need to change in httpd.conf to get error pages to work?

 

 

 

 

Top