Linux运维最佳实践pdf下载
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 域名的方法