mac apache虚拟主机配置

<VirtualHost *:80> 
    ServerAdmin slin  
    DocumentRoot "/Users/slin/work/phpStudy/myPhp"
    ServerName myphp  
    ServerAlias  myphp  
    ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
    CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
    <Directory />
            AllowOverride None
            Options None
            Require all granted //主要是这里。注意授权
    </Directory>
</VirtualHost>

posted @ 2016-05-26 21:24  傲踏天涯  阅读(214)  评论(0编辑  收藏  举报