支付宝赞助帐号:service@kuitao8.com 

mac xampp配置vhost 域名的方法

Created2017-07-26   Views 144    Author 懒人程序

httpd.conf的配置方法

搜索替换内容

<Directory >
 Options FollowSymLinks
 AllowOverride None
 Order deny,allow
 Allow from all
</Directory>
#Include etc/extra/httpd-vhosts.conf去掉#号

httpd-vhosts.conf配置方法

<VirtualHost *:80> 
    ServerAdmin webmaster@dummy-host.example.com 
     DocumentRoot "/Users/haha/wwwroot/kuitao8.com"
    ServerName www.kuitao8.com
    ServerAlias 192.168.1.168 
    ErrorLog "logs/dummy-host.example.com-error.log" 
    CustomLog "logs/dummy-host.example.com-access.log" common 
    <Directory "/Users/haha/wwwroot/kuitao8.com"> 
    Options Indexes FollowSymLinks MultiViews 
    AllowOverride all 
        Order Deny,Allow 
    Allow from all 
</Directory> 
</VirtualHost> 

重启xampp就Ok了

上一篇: mac中xampp安装swoole的方法
下一篇: mac安装redis-service的方法
支持键盘 ← →

邮件订阅

订阅我们的精彩内容