本地配置域名访问 项目目录

锁 13-88899

代码目录说明

所有 代码放在 shopaddons模块ncore{mobile|web}文件n

更改访问网站域名 大致流程

1 wampinapacheconfhttpd.conf  

   # Virtual hosts

   Include conf/extra/httpd-vhosts.conf (引入 host配置)

   httpd-vhosts.conf 文件加入如下代码 :

      <VirtualHost *:80>

    ServerAdmin leijs.anrenxing.com   

   DocumentRoot "F:wwwshop"

    ServerName leijs.anrenxing.com

    ErrorLog "logs/dummy-host.example.com-error.log"

    CustomLog "logs/dummy-host.example.com-access.log" common

      </VirtualHost>

1.2 wampinapacheconfhttpd.conf
DocumentRoot "F:/www/" 这个是svn 代码存放目录 也是apche 指定项目根目录

2 更改host  

  C:\WindowsSystem32driversetchosts

     127.0.0.1       leijs.anrenxing.com

127.0.0.1       leijs.anrenxing.com

原文地址:https://www.cnblogs.com/leijiangsheng/p/5895551.html