虚拟主机的配置

1.在apache   httpd.conf开启服务器里面的虚拟主机

   Include conf/extra/httpd-vhosts.conf

2.在apache   vhost.conf文件修改虚拟主机

  <VirtualHost *:80>
  DocumentRoot "D:/CYH/bitnami/apache2/htdocs/crm"
  ServerName www.crm.me
  ServerAlias crm.me
  <Directory "D:/CYH/bitnami/apache2/htdocs/crm">
  Options Indexes FollowSymLinks
  AllowOverride All
  </Directory>
  </VirtualHost>

3.在C盘hosts文件修改文件

   127.0.0.1 www.crm.me  crm.me

posted @   不呐呐  阅读(106)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示