最新消息: 新版网站上线了!!!

mac xampp配置vhost 域名的方法

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配置vhost 域名的方法