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

Apache虚拟主机配备

2012-10-27 
Apache虚拟主机配置????Directory d:/php/www/alibaba_code/dbCenter????AllowOverride All????Option

Apache虚拟主机配置


????<Directory "d:/php/www/alibaba_code/dbCenter">
????AllowOverride All
????Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
????Order allow,deny
????Allow from all
????</Directory>
</VirtualHost>
<VirtualHost *>
????ServerAdmin local@gmail.com
????DocumentRoot "d:/php/www"
????ServerName local.com
????ErrorLog "logs/heep.com-error.log"
????CustomLog "logs/heep.com-access.log" common

????<Directory "d:/php/www">
????AllowOverride All
????Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
????Order allow,deny
????Allow from all
????</Directory>
</VirtualHost>


2.需要添加host
???127.0.0.1??alibaba.ads.com
???127.0.0.1??local.com

3. 重定向的loadModule要打开:
???LoadModule rewrite_module modules/mod_rewrite.so

热点排行