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

Re: [cobalt-users] Custom Error message pages



Patrick Béart <patrick@xxxxxxxxxxxxxxxxxxx> wrote:
> At 12:10 AM -0400 8/14/00, Steven Werby wrote:
> >
> >BTW, those of you wondering where you can make some quick changes should
> >study the following:
> >
> >/etc/issue
> >/etc/httpd/conf/srm.conf
> >
>
> I don't get this, Steve (and everyone). There's a part of
> this file (srm.conf) that says that you can "Customize error
> response" using "external redirects", such as:
>
> ErrorDocument 401 /cobalt_error/authorizationRequired.html
> ErrorDocument 403 /cobalt_error/forbidden.html
> ErrorDocument 404 /cobalt_error/fileNotFound.html
> ErrorDocument 500 /cobalt_error/internalServerError.html
>
> 1. WHERE are these custom HTML files supposed to live?

There's another line in srm.conf that says something like:

Alias /error/ /path_to/real_directory_where_error_docs_are

The piece on the RHS is where they are.  "locate filenamehere" will also show
you the way.  You can put the ErrorDocument lines in an .htaccess file in your
site's web directory if you want to create them on a site by site basis.

--
Steven Werby {steven-lists@xxxxxxxxxxxx}