[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] How can I customize the apache 404 Error Message for each virtual site?
- Subject: Re: [cobalt-developers] How can I customize the apache 404 Error Message for each virtual site?
- From: "njd 76" <njd76@xxxxxxxxxxx>
- Date: Mon Oct 29 17:30:35 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
This is what my solution has been. I am waiting to hear from SUN/others if
this is ok.
---------
The Solution For a RAQ4 is this...
Can someone tell me if this voids my warrenty or opens security holes when
doing this please. I just know it works but I do not understand 100% why.
In the apache conf file
/etc/httpd/conf/access.conf
file you add "FileInfo" to the "AllowOverride" line to the section that
looks like this (second one down)
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride AuthConfig Indexes Limit
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
and change it to look like
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride AuthConfig Indexes Limit FileInfo
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
Then restart apache
/etc/rc.d/init.d/httpd restart
BINGO it works. Dont forget you need to add the .htaccess in the /web/
directory that points to the error docs.
From: Brent Sims <brent@xxxxxxxxxxx>
Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Subject: Re: [cobalt-developers] - Custom error documents per site for
RAQ4i
Date: Thu, 25 Oct 2001 11:05:50 -0600 (MDT)
On Thu, 25 Oct 2001, njd 76 wrote:
} ErrorDocument 403 http://www.domainname.com
}
} However this is not working. Instead we get an error that says:
} ---
} The server encountered an internal error
} or misconfiguration and was unable to
} complete your request.
} --
I've never set this up in this manner on a Cobalt but that error may
hold a clue. Try:
"ErrorDocument 404" /pagename.html
or
"ErrorDocument 404" http://www.pagename.html
For the record, the ErrorDocument XXX location syntex
is correct. The .htaccess files on our Cobalt servers usually
require quotes when more than one string is used for any single
field so I suspect my recomendation is at least worth trying - quote
the first field string as it is two words.
Peace be with you,
Brent Sims, Customer Service Manager
WebOkay Internet Services, LLC
http://www.WebOkay.net
mailto: Brent@xxxxxxxxxxx
(719) 595-1427 (Voice/Fax)
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
From: "Carlos F. Moreno" <cmoreno@xxxxxxxxxxxxx>
Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] How can I customize the apache 404 Error
Message for each virtual site?
Date: Mon, 29 Oct 2001 13:43:59 -0600
How can I customize the apache 404 Error Message for each virtual site?
I try on the srm.conf file,
replace the line
ErrorDocument 404 /cobalt_error/fileNotFound.html
With this one:
ErrorDocument 404 /fileNotFound.html
but on any virtual site I have to copy or put the fileNotFound.html
There is a way to configure the server, to each virtual server have the
differents Errors (like fileNotFound.html), but if on the virtual server
I don't have the file, redirect to the default file.
Thanks for all.
--
Carlos F. Moreno
cmoreno@xxxxxxxxxxxxx
CyberFuel.com
(506) 204-7337
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp