The error handler is a part of the VirtualHost settings. This works for me:
VirtualHost {
.....
.....
ErrorHandler = 404:/oops.html
}
Make sure the oops.html file is in the root of the respective virtual host directory. As you should have separate virtual host for each domain, you can use different 404 pages for each domain too.