Archives by Tag 'Apache'

配置Apache重写和虚拟主机小贴士

By Symphony - Last updated: Tuesday, March 25, 2008

一、看到网上很多人是在 httpd.conf 配的虚拟主机,其实 apache 有专门配虚拟主机的地方 conf\extra\httpd-vhosts.conf,记得在 httpd.conf 除掉这一行的注释 Include conf/extra/httpd-vhosts.conf 。 二、url重写,记得在 httpd.conf去掉这行注释 LoadModule rewrite_module modules/mod_rewrite.so 。还要在 httpd-vhosts.conf 加上类似 <Directory “d:/wamp/www/trident/html”> Options FollowSymLinks AllowOverride All      # 对此主机使用重写功能 </Directory> 东西。 这样就能使用带重写的虚拟主机了。(*^__^*) 嘻嘻……