关于xampp使用不同端口的虚拟机
1.打开apache/conf/httpd.conf文件加入listen 8080(监听的端口号)
然后加入
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
然后加入
DocumentRoot "E:\htdocs/"
<Directory "E:\htdocs/">
#
# 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>
注:文件地址是上面的文件地址,记住是两个地址
2.打开apache\conf\extra目录下的httpd-vhosts.conf文件
加入
<virtualhost *:8080>
ServerName localhost
DocumentRoot "E:\project_IC\Source\ICS"
</virtualhost>
注:更改地址就好了
完成!
最新文章
- 关系数据库常用SQL语句语法大全
- javaBean
- Unity 使用快速教程
- 静态局部变量、静态全局变量、extern全局变量、自动变量 札记
- C#: 自定义控件
- with 语句
- URAL 1146 Maximum Sum &; HDU 1081 To The Max (DP)
- Mysql 死锁问题
- 教你看懂C++类库函数定义之一---HRESULT 宏
- Oracle学习(十四):管理用户安全性
- vijos1090题解
- PHP(PHP-FPM)手动编译安装
- Win10 中将网页转换成pdf的简便方法
- popwindow+动画
- Django-models &; QuerySet API
- PXE+kickstart无人值守安装CentOS 7
- 本地搭了http服务(localhost),怎么在vue环境下,通过axios获取到接口数据
- 物联网架构成长之路(8)-EMQ-Hook了解、连接Kafka发送消息
- Sharepoint claim认证的login name
- 词向量-LRWE模型-更好地识别反义词同义词
热门文章
- Linux常用命令_(系统管理)
- 编译x264 for ios
- [LintCode] Binary Tree Serialization
- Codeforces Round #293 (Div. 2)
- emacs auto-complete
- ZOJ 3805 (树形DP)
- TYVJ P1051 选课 Label:多叉转二叉&;&;树形dp(虐心♥)
- 【TYVJ】1982 武器分配(费用流)
- 【wikioi】1217 借教室
- C#的async和await