cannot use a full URL in a 401 ErrorDocument directive

注意到在 DBA Wiki 的 Apache Error Log 里面有这样一条信息频繁出现:

http:[Thu Feb 12 22:16:11 2006] [notice] cannot use a full URL in a 401 
ErrorDocument directive ---ignoring

在 bin 目录下的 .htaccess 我定义了 401 错误的重定向.检查了一下.原来 Apache 下不能用 URL 路径.必须要本地路径才可以.修改为如下:

# File to return on access control error (e.g. wrong password)
# By convention this is the TWikiRegistration page, that allows users
# to register with the TWiki. Apache requires this to be a *local* path.
ErrorDocument 401 /bin/view/TWiki/TWikiRegistration

修改之后该错误不再出现.记录一下.或许对别人也有用.

| | TrackBacks (0) | | Edit

Generator | Trampoline | 外贸英才网 | Vinyl fence

自定义搜索

本文相关评论|Comments(1)

szhfcn 的评论:

dddddddddddddd

添加评论

关于这篇文章

这篇文章由 Fenng 于 February 14, 2006 9:48 PM 发布

上一篇:TWiki 的安装配置--针对 DreamHost

下一篇:WikiWiki! Google

回到首页查看最近的文章或者是查看所有归档文章

DBA notes 的订阅数量,点击则可进行订阅
Feed 订阅数量,点击即可订阅最新内容