求助!
我按照韩顺平老师的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路径访问。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号