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

 

锁 13-88899

代码目录说明

所有 代码放在 \shop\addons\模块n\core\{mobile|web}\文件n

 

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

 

1 \wamp\bin\apache\conf\httpd.conf  

   # Virtual hosts

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

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

      <VirtualHost *:80>

    ServerAdmin leijs.anrenxing.com   

   DocumentRoot "F:\www\shop"

    ServerName leijs.anrenxing.com

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

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

      </VirtualHost>

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

2 更改host  

  C:\\Windows\System32\drivers\etc\hosts

     127.0.0.1       leijs.anrenxing.com

127.0.0.1       leijs.anrenxing.com

转载于:https://www.cnblogs.com/leijiangsheng/p/5895551.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值