阿帕奇配置本地虚拟站点,XAMPP环境下
2024-09-04 11:55:49
首先利用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!
最新文章
- 基本shell编程【3】- 常用的工具awk\sed\sort\uniq\od
- SQL基础--序列
- mongodb(副本集)
- jquery 的队列queue
- Python3.X新特性之print和exec
- Ejabberd2:安装和操作指南(centos yum 安装ejabberd)
- 14.8.1 Creating InnoDB Tables 创建InnoDB 表
- android 19 activity纵横屏切换的数据保存与恢复
- 【Swift初见】Swift词典
- 跨语言时区处理与Epoch
- win10 UWP 你写我读
- [转]查询sqlserver 正在执行的sql语句的详细信息
- 芝麻HTTP:如何寻找爬虫入口
- 【English】20190429
- 保卫";木叶";,从火影剧情看网站攻防的演变
- C#通讯录——Windows Form Contact List
- 【SpringBoot】Logback日志框架介绍和SpringBoot整合实战
- idea设置文件的编码格式为utf-8
- ACM-ICPC 2018 沈阳赛区网络预赛-K:Supreme Number
- Unreal Engine 4(虚幻UE4)GameplayAbilities 插件入门教程(六)GameplayEffect的级别设置
热门文章
- mysql8之与标准sql的区别
- Tomcat &;&; Servlet(1)
- Dedesql数据库类详解(二次开发必备教程)(转)
- 通过docker构建zabbix监控系统
- Yii2 Post请求的时候出现400错误
- C# 判断程序是否已在运行
- centOS下 JDK的三种安装方式
- TCP之四:TCP 滑动窗口协议 详解
- 免费SSL证书 - Let&#39;s Encrypt申请(WINDOWS + IIS版)
- 解决git gnutls_handshake失败