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

PHP基础问题-配置虚拟目录

求助!
我按照韩顺平老师的php教程,再加上2.4的更新,写了以下代码
directoryindex index.html index.htm index.php
    alias /new c:/php
#order allow,deny
    #allow from all
    #the order command is depreciated so replace with below.
    require all granted
并且把documentroot也comment掉了,可是还是访问不到我的文件,我的文件的地址是
c:\php\new.html
回复讨论(解决方案) http://localhost/new/new.html
访问不到?
你是如何访问的?
访问地址是什么?
用http://localhost/new/new.html访问应该可以的。
访问到了,谢谢各位,原来是我没搞懂,我一直是用http://localhost/php/new.html 来访问的,原来alias是把 c:/php 改成new,然后通过new路径访问。
其它类似信息

推荐信息