首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

apache 虚拟主机设立

2012-11-23 
apache 虚拟主机设置1:httpd.confInclude conf/extra/httpd-vhosts.conf 2:httpd-vhosts.conf VirtualH

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 FollowSymLinksAllowOverride None        Order allow,denyAllow from allSatisfy all    </Directory></VirtualHost>

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

热点排行