标签:
<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> 
标签:
原文地址:http://www.cnblogs.com/dasenglin/p/5532731.html