I have multiple sites, and I would like to set up a different 404 page for each of my sites
Someone already faced this problem? How I can accomplish this?
Or there is a way to do via the dispatcher and create a static 404 error HTML page each time I publish a site?
You might have to add that logic under your custom 404.jsp and depending upon Host name you can call different logic or script. Hope that make sense.
Currently the most effective way to do what you're asking is to set up your 404.jsp to include the content of a site specific 404.
There was a conversation about this here;