hosts里面加了
127.0.0.1 newtest.net
httpd-vhosts里配置的
DocumentRoot "F:/MYphp"
DirectoryIndex index.html index.htm index.php
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
这段有什么问题,为什么浏览器拒绝访问403错误呢?
回复讨论(解决方案)
<VirtualHost 127.0.0.1 :80>???
<VirtualHost 127.0.0.1 :80>
你应该在Apache的htdocs目录下新建一个newtest.net的目录,在该目录里写个echo "hello world";测试。。。然后 改DocumentRoot "某盘下的Apache的htdocs目录下的newtest.net目录(写绝对路径)"
ServerName newtest.net
重启Apache
谢谢各位帮助,我重装了一下Apache就行了,可能是不小心改了其他东西把
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!