您好,欢迎访问一九零五行业门户网

php-PHP:用httpd.conf设置虚拟路径,为什么我这样作了之后仍不能访问呢

phpapache
直接在浏览器中访问localhost/demo,则会自动显示/htdocs/demo下的index.html页面
下面修改httpd.conf,为该工程配置虚拟路径,如下
loadmodule rewrite_module modules/mod_rewrite.soalias /test /usr/local/apache2/htdocs/demo/allowoverride noneoptions noneorder allow,denyallow from all
最后重启apache,通过localhost/test无法访问该工程,显示为
not foundthe requested url /test was not found on this server.apache/2.0.65(unix) dav/2 server at localhost port 80
/apache2/logs/error_log报错如下
[error][client 127.0.0.1]file does not exist:/usr/local/apache2/htdocs/test
请前辈们看一下,我这个虚拟路径为什么配的不正确呢?
其它类似信息

推荐信息