apache虚拟主机设置
<VirtualHost *:80> ServerAdmin hello@jj.com DocumentRoot "D:/a" // 硬盘地址 ServerName d.a.c ServerAlias d.a.com ErrorLog "logs/da.log" // 错误日志文件 CustomLog "logs/da.log" common // 用户访问日志文件 <Directory "D:/a"> // 80端口网站地址 Options Indexes FollowSymLinks // AllowOverride ALL Order allow,deny Allow from all </Directory> </VirtualHost>
注意:使用时去掉注释