LinuxSir.cn,穿越时空的Linuxsir!

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

求助: Apache 虚拟目录设置问题:Forbidden

[复制链接]
发表于 2003-10-14 09:08:53 | 显示全部楼层 |阅读模式
我的Apache 根目录是
DocumentRoot "/var/www/html"
根目录下面的文件可以成功访问

我想设置一个虚拟目录
Alias /www/ "/home/lot/www/"
但用 127.0.0.1/www/index.php 访问的时候出现错误,目录/home/lot/www的权限为755
改为777也不行 :-( 求助

Forbidden

You don't have permission to access /www/index.php on this server.
...
发表于 2003-10-14 09:20:17 | 显示全部楼层
我没试过,你试试:
DocumentAlias /www/ /home/lot/www
 楼主| 发表于 2003-10-14 09:43:00 | 显示全部楼层
谢谢天剑的解答,但好像不行
重新启动Apache时出错
Invalid command 'DocumentAlias', perhaps mis-spelled or defined by a module not included in the server configuration
发表于 2003-10-14 10:06:52 | 显示全部楼层
这样,你重新构一个,就行了,我只是觉得越简单越好,好像不行,你只有重构了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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