.htaccess的问题

widad2666 2003-05-13 12:29:55
.htaccess设置:
AuthName "管理员区" 
AuthType basic 
authuserfile /etc/.userpasswd 
require valid-user 

httpd.conf:

Alias /myadmin "/usr/local/www//MyAdmin"

<Directory "/usr/local/www//phpMyAdmin">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride all
Order allow,deny
Allow from all
</Directory>

/etc/.userpasswd用htpasswd设过了
结果连对话框都不弹,保下列错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request

error_log日志:
[Tue May 13 00:26:08 2003] [crit] [client X.X.X.X] configuration error: couldn't check user. No user file?: /phpmyadmin

怎么办呢?
...全文
48 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
widad2666 2003-05-13
  • 打赏
  • 举报
回复
不好意思,写错了:
Alias /myadmin "/usr/local/www/phpMyAdmin"

<Directory "/usr/local/www/phpMyAdmin">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride all
Order allow,deny
Allow from all
</Directory>

/etc/.userpasswd确实存在,连属性都改成666了
ashchen 2003-05-13
  • 打赏
  • 举报
回复
/etc/.userpasswd 这个文件存在吗?

Alias /myadmin "/usr/local/www//MyAdmin"
<Directory "/usr/local/www//phpMyAdmin">
上面怎么多了// ?

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧