[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] custom 404 page - raq4



I don't want it for all sites, but more than one.  I will give it a go and
let you know how it works out.  Thanks!

Anthony Noe
Interactive Media Specialist
NOEINK
502.345.4039
www.noeink.com



-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of William L.
Thomson Jr.
Sent: Thursday, March 06, 2003 3:52 PM
To: Cobalt Developers Group
Subject: Re: [cobalt-developers] custom 404 page - raq4


Anthony,

On Thu, 2003-03-06 at 12:37, Anthony Noe wrote:
> what is the best way to create custom 404 pages for each site?

	You could do it the way they do on the XTR's. In your httpd.conf file
for each virtual host add the following between the <VirtualHost>
brackets just after the document root. Although I think anywhere in the
virtual host should be OK.

ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.htm

If you want this enabled by default then you will need to modify one or
more of the cobalt perl scripts. I am not sure which one of the top of
my head. Maybe some one else will chime in with that info.

Of course with the above in each virtual site you will need a error
folder with the appropriate default html error pages.

Is this a one time thing or do you want that to be done automatically
when adding/creating sites? One time, easy and quick to do.
Automatically will require you to roll up your sleeves and add/modify
some code. Nothing to major though.

--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone  707.766.9509
Fax    707.766.8989
http://www.obsidian-studios.com

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers