xampp多站点配置,最简洁方式
来源:互联网 发布:linux 查看文件夹属性 编辑:程序博客网 时间:2024/05/29 17:47
首先,下载安装官方最新版本的xampp,地址:点击。
安装成功后,运行软件,点击Explorer.
会打开软件的安装目录,选择.\apache\conf\extra\httpd-vhosts.conf ,打开。
添加如下内容:
<VirtualHost 127.0.0.2:80> ServerAdmin "127.0.0.2:80" DocumentRoot "E:/wwwroot/xxx" ServerName 127.0.0.2 ErrorLog "logs/xxx.log" CustomLog "logs/xxx.log" combined</VirtualHost> DocumentRoot "E:/wwwroot"<Directory "E:/wwwroot"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted</Directory>
,之后依次添加127.0.0.3,127.0.0.4,就直接复制
<VirtualHost 127.0.0.3:80> ServerAdmin "127.0.0.3:80" DocumentRoot "E:/wwwroot/yyy" ServerName 127.0.0.3 ErrorLog "logs/yyy.log" CustomLog "logs/yyy.log" combined</VirtualHost>
比较简单,而且不用再修改hosts文件了。
1 0
- xampp多站点配置,最简洁方式
- xampp多站点配置
- xampp 多站点配置
- xampp/apache多站点配置
- XAMPP配置多站点过程
- Xampp配置多站点及根目录
- xampp安装及配置多站点
- mac xampp 多站点配置教程
- XAMPP下apache,多站点配置
- mac下XAMPP服务器配置多站点配置局域网配置
- mac下XAMPP服务器配置多站点配置局域网配置
- mac下XAMPP服务器配置多站点配置局域网配置
- mac下XAMPP服务器配置多站点配置局域网配置
- mac下XAMPP服务器配置多站点配置局域网配置
- 【配置阿里云】(续)xampp设置多站点配置(顶替默认加载dashboard修改方式)
- 集成xampp,apache站点配置
- mac 下 xampp 多域名 多站点 多虚拟主机 配置
- mac 下 xampp 多域名 多站点 多虚拟主机 配置
- JDK 1.5 新特性
- 读《你的灯亮着吗》
- Spring02-IOC 实例
- MFC 版本
- 【C++】1021. Deepest Root (25)
- xampp多站点配置,最简洁方式
- final 关键字
- myeclipse连接oracle数据库对emp表进行分页处理
- Java GUI 实战练习 学生成绩管理系统
- 经典智力题:工人分金条问题
- 构造函数、构造代码块与静态代码块
- 用document.getElementsTagName为控件添加事件。
- 当老师讲到多线程安全时我就想到上火车厕所的例子,最后老师也提到...
- 源码学习----underscore