LinuxSir.cn,穿越时空的Linuxsir!

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

Apache, php, alias 求助

[复制链接]
发表于 2011-1-25 14:46:13 | 显示全部楼层 |阅读模式
apache 配置:
  1. Alias /test/ "/www/prima/test/"
  2. Alias /test "/www/prima/test/"
  3. <Directory "/www/prima/test/">
  4.     Options Indexes
  5.     AllowOverride All
  6.     Order allow,deny
  7.     Allow from all
  8. </Directory>
复制代码

php 在 documentroot 工作正常, 但是在 /test/ 下无法解释

http://localhost/test 共两个文件 (如图1)

test.html 没问题

test.php 显示 如图2
  1. Not Found
  2. The requested URL was not found on this server.
复制代码

输入 http://localhost/test/test1.php (无此文件) 显示 如图3
  1. Not Found
  2. The requested URL /test/test1.php was not found on this server.
  3. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
复制代码

显然,文件不是 Not Found ... 且两个 Not Found 不一样
不知道 test.php 的 Not Found 到底指的是什么 Not Found.

不知所以,请求帮助

test.php 内容
  1. <?
  2. print 'Hello, PHP!';
  3. ?>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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