<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a multi-site configuration. I change the
/system/handler/handle404.html file. I add</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2><%response.sendRedirect("/error404.html");%>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I use opencms 6.2.1 and the config to get rid<FONT
face="Times New Roman" size=3> of the /opencms/opencms-prefix (see</FONT><FONT
face="Times New Roman" size=3> HowTo: Get rid of the /opencms/opencms-prefix
(without installing OpenCms as ROOT-Webapp, <A
href="http://opencms-forum.de/viewtopic.php?t=713">http://opencms-forum.de/viewtopic.php?t=713</A>).</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Martin</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cocaman@gmail.com href="mailto:cocaman@gmail.com">Corsin Camichel</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">The OpenCms mailing list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 03, 2006 5:12 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [opencms-dev] Custom 404
pages on a per-site basis...</DIV>
<DIV><BR></DIV>Hello Nigel<BR><BR>All you can do (as what I have found out) is
create 1 404 page in /JAKARTA/webapps/ROOT/ and inside the 404 page a switch
between the different sites.<BR>If you come up with any other solution, I
would love to hear that from you. <BR><BR>Code:<BR>String serverHost =
request.getServerName();<BR>
<BR>if(serverHost.equals("HOST1")) { //
like <A
href="http://www.unsw.edu.au">www.unsw.edu.au</A><BR> //
code 1<BR>} else if (serverHost.equals ("HOST2")) { // like
<A href="http://cofa.unsw.edu.au">cofa.unsw.edu.au</A><BR>
// code 2<BR>} ...<BR><BR>Best wisches and regards<BR>Corsin Camichel<BR><BR>
<DIV><SPAN class=gmail_quote>On 7/3/06, <B class=gmail_sendername>Nigel
Kersten</B> <<A
href="mailto:nigel@cofa.unsw.edu.au">nigel@cofa.unsw.edu.au</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I'm
wondering how we can actually define our 404 pages to be within<BR>the site
itself? or at least on a per-site basis, rather than having<BR>one global
404 page for the entire OpenCMS server.<BR><BR>Does anyone know if this is
possible without writing conditional code <BR>within the same
page?<BR><BR>--<BR>Nigel Kersten [Senior Technical Officer]<BR>College of
Fine Arts, University of NSW, Australia.<BR>CRICOS Provider Code:
00098G<BR><BR><BR><BR><BR>_______________________________________________
<BR>This mail is sent to you from the opencms-dev mailing list<BR>To change
your list options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev
</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Corsin Camichel<BR><A
href="mailto:cocaman@gmail.com">cocaman@gmail.com</A>
<P>
<HR>
<P></P><BR>_______________________________________________<BR>This mail is
sent to you from the opencms-dev mailing list<BR>To change your list options,
or to unsubscribe from the list, please
visit<BR>http://lists.opencms.org/mailman/listinfo/opencms-dev</BLOCKQUOTE></BODY></HTML>