Hi Matteo,
you can simply setup a default error page in web.xml:
<error-page>
<error-code>404</error-code>
<location>/errors/404.html</location>
</error-page>
and then map the /errors/404.html to a real path using a VirtualURI
that forward to a different page depending on the hostname.
I recently committed a specific virtualuri implementation, it will be
ready to use in magnolia 4.1.1. In the meanwhile you can just copy it
into your project, see
http://jira.magnolia-cms.com/browse/MAGNOLIA-2846 for info and
configuration instructions.
fabrizio
On Fri, Aug 21, 2009 at 5:49 PM, Matteo Pelucco
<[email protected]> wrote:
>
> Hi all,
> just a quick question.
>
> Does anybody has experience on serving *custom* 404-error / 500-error pages
> on a multisite public instance?
> I mean, I have on website:
>
> /site1
> /site2
>
>
> and I would like to serve
>
> /site1/404.html
> /site2/404.html
>
> as error pages. (The same for 500..).
>
> We have found refs here:
> http://jira.magnolia-cms.com/browse/MAGNOLIA-1565
>
> and here:
> http://wiki.magnolia-cms.com/display/WIKI/How+to+setup+a+custom+404+handler
>
> but they seems to be not enough.
> Any suggestion?
>
> Thanks a lot...
>
> Matteo
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------