免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3267 | 回复: 3
打印 上一主题 下一主题

生成的 .htaccess 密码保护文件,出现Internal Server Error [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-12 21:35 |只看该作者 |倒序浏览
生成的 .htaccess 密码保护文件,出现Internal Server Error
生成的 .htaccess 密码保护文件,出现Internal Server Error,请问有没有解决方法?

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


为什么呢, 其它设置都可以,

<Files .htaccess>
order allow,deny
deny from all
</Files>
AuthName "Section Name"
AuthType Basic
AuthUserFile  /10-12/.htpasswd
Require valid-user

救救。。。。

论坛徽章:
0
2 [报告]
发表于 2009-11-12 22:08 |只看该作者

回复 #1 guopingleee 的帖子

第一次写好这个时可以用, 弹出窗口输入用户名密码,我直接按取消了, 一会访问时就这样了, 就一直这样, 是不是按时间问题, 过几分钟再弹出窗口啊?????

论坛徽章:
0
3 [报告]
发表于 2009-11-13 08:57 |只看该作者

回复 #1 guopingleee 的帖子

我来个自问自己答吧, 终于解决了, 用了一个晚上也没搞出来,今天早晨终于解决,给新手一个教训吧,呵呵。。。所有教程整理出来给大家分享

appache 安装目录下找到  D:\AppServ\Apache2.2\error.log 文件, 搜索一下就行, 打开error.log 全都在里面, 什么原因都写清了,
[Fri Nov 13 08:48:57 2009] [error] [client 127.0.0.1] (OS 3)系统找不到指定的路径。  : Could not open password file: D:/10-12/.htpasswd

评分

参与人数 1可用积分 +10 收起 理由
bs + 10 很好,鼓励

查看全部评分

论坛徽章:
0
4 [报告]
发表于 2009-11-13 09:02 |只看该作者
,虽然我没用过apache,根据楼主的经历,我也得到了一个经验:
出错了要先查日志,不管是系统日志还是应用程序自己的日志。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP