PHP 配置虚拟域名访问
来源:互联网 发布:数学手册 知乎 编辑:程序博客网 时间:2024/05/21 10:16
本内容分以下几个步骤:
1、首页我们得找到host文件、这个文件在c盘中WINDOWS\system32\drivers\etc\hosts
在该文件中插入:
- # localhost name resolution is handled within DNS itself.
- # 127.0.0.1 localhost
- # ::1 localhost
- 127.0.0.1 localhost
- 127.0.0.2 www.emswxh.com
- 127.0.0.3 www.xiu.com
2、然后咱们得去找httpd.conf文件、这个文件相应位置在您服务器安装的目录下/\apache\conf\httpd.conf , 找到 “Include conf/extra/httpd-vhosts.conf 如果前面有# 则需要把它删掉
3、找到httpd-vhosts.conf文件
然后添加以下内容
- <VirtualHost *:80>
- ServerAdmin webmaster@dummy-host2.example.com
- DocumentRoot "E:/m1905/ems" //这个为您的项目目录
- ServerName www.emswxh.com //这个为您在host中配置
- ErrorLog "logs/dummy-host2.example.com-error.log"
- CustomLog "logs/dummy-host2.example.com-access.log" common
- </VirtualHost>
然后重启服务器就可以了
阅读全文
0 0
- PHP 配置虚拟域名访问
- PHP 配置虚拟域名访问
- PHP本地实现虚拟域名访问:Apache虚拟主机配置
- PHP 配置apache端口以及虚拟域名访问
- PHP配置虚拟域名 Vhost
- apache 设置IP访问、配置apache虚拟域名、Apache 配置二级域名、php 配置 curl
- tomcat 配置多个虚拟域名访问
- 基于Apache2.2配置虚拟域名访问
- 虚拟域名不能访问
- apache本机环境配置虚拟访问域名
- apache本机环境配置虚拟访问域名
- apache 配置了虚拟域名访问受限问题
- Apache配置虚拟域名后localhost无法正常访问
- 阿里云tomcat配置虚拟路径和域名访问
- 配置虚拟域名&让别人访问自己本地的项目
- tomcat配置虚拟域名
- 配置apache虚拟域名
- Apache 虚拟域名配置
- 动态库的链接和链接选项-L,-rpath-link,-rpath
- 主成分分析(PCA)原理与故障诊断(SPE、T^2以及结合二者的综合指标)-MATLAB实现
- Mac版 android studio竖线的光标突然变成了矩形
- UI梦
- 创建要素类,关系类,ITopologicalOperator接口
- PHP 配置虚拟域名访问
- Cannot create PoolableConnectionFactory (Communications link failure
- Jmeter 接口测试中使用Beanshell断言: 将接口响应报文与数据库结果对比
- 2017 ACM/ICPC Asia Regional Shenyang transaction transaction transaction
- 简谈JAVA基础--双向链表(LinkedList)
- 算法系列之--Kotlin的算法实战比较(原)
- android studio开发:判断网络是否连接
- zabbix配置ldap认证
- 鸟哥私房菜第十三章习题答案