在httpd.conf中增加以下内容
#
监听端口
Listen 8000
# 虚拟站点信息
< VirtualHost 192.168 . 0.1 : 8000 >
ServerAdmin webmaster@abc . com
DocumentRoot D: / MyCMS
ServerName www . abc . com: 80
ErrorLog logs / host . abc . com-error_log
TransferLog logs / host . abc . com-access_log
</ VirtualHost >
# 文档目录属性
< Directory " D:/MyCMS " >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow , deny
Allow from all
</ Directory >
Listen 8000
# 虚拟站点信息
< VirtualHost 192.168 . 0.1 : 8000 >
ServerAdmin webmaster@abc . com
DocumentRoot D: / MyCMS
ServerName www . abc . com: 80
ErrorLog logs / host . abc . com-error_log
TransferLog logs / host . abc . com-access_log
</ VirtualHost >
# 文档目录属性
< Directory " D:/MyCMS " >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow , deny
Allow from all
</ Directory >