日期:2014-05-16  浏览次数:20914 次

apache 虚拟主机设置
1:httpd.conf
Include "conf/extra/httpd-vhosts.conf" 

2:httpd-vhosts.conf
<VirtualHost *:80>
    ServerAdmin webmaster@aaa.com
    DocumentRoot	"e:/wrokspace/phpWorkspase/mossyoakgraphics"
    ServerName www.aaa.com
	<Directory "e:/wrokspace/phpWorkspase/mossyoakgraphics">
        Options Indexes FollowSymLinks
		AllowOverride None
        Order allow,deny
		Allow from all
		Satisfy all
    </Directory>
</VirtualHost>

3:C:\Windows\System32\drivers\etc\hosts
127.0.0.1 www.aaa.com