Apache vhost config

下面的只是个php演示,除了配置这里,还要配置本地hosts文件。

<VirtualHost dev.cppfun.com>
    ServerAdmin dev@connove.com
    DocumentRoot "Z:/soft/apache/htdocs/devcpp/"
    ServerName dev.cppfun.com
   
    <Directory "Z:/soft/apache/htdocs/devcpp/">
     Options FollowSymLinks
     AllowOverride All
     Allow from all
     DirectoryIndex index.htm index.html index.php
    </Directory>
</VirtualHost>

发表评论