[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] - Custom error documents per site for RAQ4i
- Subject: Re: [cobalt-developers] - Custom error documents per site for RAQ4i
- From: "njd 76" <njd76@xxxxxxxxxxx>
- Date: Fri Oct 26 06:48:45 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp