1.创建虚拟主机
NameVirtualHost 192.168.1.101
<VirtualHost 192.168.1.101>
DocumentRoot "c:/www"
ServerName test.yiwuku.net
</VirtualHost>
<VirtualHost 192.168.1.101>
DocumentRoot "c:/www/w1"
ServerName test1.yiwuku.net
</VirtualHost>
<VirtualHost 192.168.1.101>
DocumentRoot "c:/www/w2"
ServerName test2.yiwuku.net
</VirtualHost>
也可以加上
ErrorLog /var/log/httpd/hr.yourdomain.com/error_log
TransferLog /var/log/hr.yourdomain.com/access_log
2.不能启动,运行-》cmd 进入到apache的bin目录。输入httpd.exe -w -n "Apache" -k start 会提示配置文件的具体那行出错, 其中"Apache"为服务的名字
留下你的看法: