LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1096|回复: 1

配置apahce的问题,我的apache怎么就不行呢,就连测试页也打不开?

[复制链接]
发表于 2004-7-7 10:19:36 | 显示全部楼层 |阅读模式
1)在我浏览器中输入localhost直接连到Internet上了,搜索有关localhost的忘页,不能打开我的测试页

2)输入127.0.0.1提示为:The connection was refused when attempting to connect 127.0.0.1

3)输入192.168.2.15(我的电脑的IP地址),在浏览器的左上角显示index以外其它什么也显示不了.

4)输入192.168.2.15/test.php在浏览器中提示:
Not Found

The requested URL /test.php was not found on this server.

Apache/2.0.46 (Unix) Server at 192.168.2.15 Port 80

其中test.php的内容为<? phpinfo() ?>,我把他放在了/usr/local/apache/htdocs目录下,把他放到根目录下也是这个提示?


请问各位我的应该怎么设置?
发表于 2004-7-7 11:19:44 | 显示全部楼层
看看你的httpd.conf文件, RootDocument定义在哪里? 同时, 查看netstat -tanp | grep http, 检测服务器是否监听.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表