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

[cobalt-users] Server wide custom 404



I'd like to enable custom 404's for all virtual sites WITHOUT using the .htaccess method.

I searched srm.conf and found this:

# Customizable error response (Apache style)
#  these come in three flavors
#
#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the (") marks it as text, it does not get output
#
#    2) local redirects
#ErrorDocument 404 /missing.html
#  to redirect to local url /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#  n.b. can redirect to a script or a document using server-side-includes.
#
#    3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
#

ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 500 /error/internalServerError.html
____________________________________________

I would assumed this meant that if my users had a directory called "error" with the custom 404 page called "fileNotFound.html" in it then they could make their own 404 pages.

I tried this and it doesn't work.  Is there something else I should be doing?

Brian