免费注册 查看新帖 |

Chinaunix

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

[Web] 启动apache,在地址输入localhost显示403错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-08 14:54 |只看该作者 |倒序浏览
我用的是FC3+apache+php+mysql
httpd.conf下配置的servername为127.0.0.1:80
启动apache后,在地址输入localhost或者127.0.0.1后页面显示为:
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.53 (Unix) Server at localhost Port 80
请问这是怎么回事呀?怎么解决?

论坛徽章:
0
2 [报告]
发表于 2005-03-08 20:35 |只看该作者

启动apache,在地址输入localhost显示403错误

是不是说得不够详细呀?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2005-03-08 21:03 |只看该作者

启动apache,在地址输入localhost显示403错误

1、属性修改为777测试看看

2、放置一个index.htm或者index.html在www的根目录测试看看

论坛徽章:
0
4 [报告]
发表于 2005-03-09 03:47 |只看该作者

启动apache,在地址输入localhost显示403错误

在目录下建了个index.php文件,里面是<? phpinfo(); ?>;
htdocs文件夹和index.php全都设置属性为777,地址输入localhost后:
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.53 (Unix) PHP/4.3.10 Server at localhost Port 80

论坛徽章:
0
5 [报告]
发表于 2005-03-09 12:23 |只看该作者

启动apache,在地址输入localhost显示403错误

我把DocumentRoot由/home/我的用户/htdos改为/opt/htdocs,并把原来的htdocs文件夹移动到/opt/,重启apache后,在浏览器地址输入localhost,就看到了那片羽毛

论坛徽章:
0
6 [报告]
发表于 2005-03-09 22:46 |只看该作者

启动apache,在地址输入localhost显示403错误

是不是俺这问题比较特殊,人品问题阿???

论坛徽章:
0
7 [报告]
发表于 2005-03-10 16:56 |只看该作者

启动apache,在地址输入localhost显示403错误

应该是目录权限没设好 /home/$user是700的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP