with 发表于 2015-8-5 07:55:06

apache开启虚拟主机功能与httpd-vhosts.conf 配置分享

首先,在httpd.conf下开启虚拟主机功能
  找到配置项
  # Virtual hosts                                                                                                         
#Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

  
  修改为
  # Virtual hosts                                                                                                         
  Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

  

开发时,httpd-vhosts.conf可以参考如下配置

ServerAdmin fudesign2008@163.com
DocumentRoot "F:\workspace\vim\YNote\src"
    ServerName editor.fuyg.cn
    ServerAlias editor.fuyg.cn
    ErrorLog "logs/dummy-host.localhost-error.log"
    CustomLog "logs/dummy-host.localhost-access.log" combined
   
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
页: [1]
查看完整版本: apache开启虚拟主机功能与httpd-vhosts.conf 配置分享