首先利用XAMPP搭建的阿帕奇环境,必须得启动,不能启动的话www.baidu.com

在XAMPP的目录下的apache,打开httpd-vhosts.conf文件

E:\XAMPP\apache\conf\extra

在最后加上这个

80就是监听的端口

ServerName 就是本地的域名
DocumentRoot就是文件的环境
切记是\这种目录的斜杠
Directory 也要改
 
<VirtualHost *:>

 ServerName ymh.com

 DocumentRoot "E:\XAMPP\htdocs\jianshu\fabu\public"

<Directory "E:\XAMPP\htdocs\jianshu\fabu\public"> 

 Options FollowSymLinks IncludesNOEXEC Indexes

 DirectoryIndex index.php index.html index.htm 

 AllowOverride all 

 Order Deny,Allow 

 Allow from all 

 Require all granted

</Directory>

</VirtualHost>

然后打开

C:\Windows\System32\drivers\etc

打开host文件

在最后加上这一句话

127.0.0.1 ymh.com

然后重启阿帕奇OK!

最新文章

  1. 基本shell编程【3】- 常用的工具awk\sed\sort\uniq\od
  2. SQL基础--序列
  3. mongodb(副本集)
  4. jquery 的队列queue
  5. Python3.X新特性之print和exec
  6. Ejabberd2:安装和操作指南(centos yum 安装ejabberd)
  7. 14.8.1 Creating InnoDB Tables 创建InnoDB 表
  8. android 19 activity纵横屏切换的数据保存与恢复
  9. 【Swift初见】Swift词典
  10. 跨语言时区处理与Epoch
  11. win10 UWP 你写我读
  12. [转]查询sqlserver 正在执行的sql语句的详细信息
  13. 芝麻HTTP:如何寻找爬虫入口
  14. 【English】20190429
  15. 保卫&quot;木叶&quot;,从火影剧情看网站攻防的演变
  16. C#通讯录——Windows Form Contact List
  17. 【SpringBoot】Logback日志框架介绍和SpringBoot整合实战
  18. idea设置文件的编码格式为utf-8
  19. ACM-ICPC 2018 沈阳赛区网络预赛-K:Supreme Number
  20. Unreal Engine 4(虚幻UE4)GameplayAbilities 插件入门教程(六)GameplayEffect的级别设置

热门文章

  1. mysql8之与标准sql的区别
  2. Tomcat &amp;&amp; Servlet(1)
  3. Dedesql数据库类详解(二次开发必备教程)(转)
  4. 通过docker构建zabbix监控系统
  5. Yii2 Post请求的时候出现400错误
  6. C# 判断程序是否已在运行
  7. centOS下 JDK的三种安装方式
  8. TCP之四:TCP 滑动窗口协议 详解
  9. 免费SSL证书 - Let&#39;s Encrypt申请(WINDOWS + IIS版)
  10. 解决git gnutls_handshake失败