关于Apache虚拟主机配置问题

WBOY
Release: 2016-06-23 13:28:03
Original
969 people have browsed it

httpd.conf里面已经启用了httpd-vhosts,
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错误呢?


回复讨论(解决方案)

???

 你应该在Apache的htdocs目录下新建一个newtest.net的目录,在该目录里写个echo  "hello world";测试。。。然后 改DocumentRoot "某盘下的Apache的htdocs目录下的newtest.net目录(写绝对路径)"
    ServerName newtest.net
重启Apache

谢谢各位帮助,我重装了一下Apache就行了,可能是不小心改了其他东西把

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template