apache问题,index.html可以访问,但是无法访问1.txt???

回复 收藏

看了测试PHP解析这一章,PHP完成后,在浏览器中输入服务器地址可以访问显示it works,但是我在htdocs中新建了一个1.txt文件,里面输入了内容之后。在浏览器中输入IP/1.txt总是无法访问?

[root@localhost htdocs]# cd /usr/local/apache2/htdocs/

[root@localhost htdocs]# ls 

1.txt  index.html

[root@localhost htdocs]# cat 1.txt 

Jeet Kune Do

访问结果:

11.png

2.png

2016-11-26 11:15 举报
已邀请:
0

阿铭 管理员

赞同来自:

curl -x127.0.0.1:80  localhost/1.txt 

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: