博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
xampp 虚拟机配置
阅读量:4569 次
发布时间:2019-06-08

本文共 689 字,大约阅读时间需要 2 分钟。

目标:

本地某端口根目录映射到htdoc的一个位置

方法:

1.修改D:\xampp\apache\conf 下的httpd文件,给里面的virtual host增加监听端口

## Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the 
# directive.## Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses.##Listen 12.34.56.78:80Listen 81Listen 82

2.由httpd文件里面的配置可以看到,虚拟机的配置文件路径

# Virtual hostsInclude conf/extra/httpd-vhosts.conf

3.去conf/extra/httpd-vhosts.conf增加虚拟机

NameVirtualHost *:82
DocumentRoot "D:/xampp/htdocs/traffic-monitor"

4.重启Apache 访问localhost:82 就可以啦

转载于:https://www.cnblogs.com/it-snail/p/3858127.html

你可能感兴趣的文章
在Apache下开启SSI配置
查看>>
居然有这种操作?各路公司面试题(作者:马克-to-win)
查看>>
Jmeter:图形界面压力测试工具
查看>>
java线程:Atomic(原子)
查看>>
环境准备—之—linux下安装python3和pip3
查看>>
做了这么久的 DBA,你真的认识 MySQL 数据安全体系?【转】
查看>>
Shell习题100例
查看>>
jquery操作select
查看>>
linq 左连接实现两个集合的合并
查看>>
MFC 线程中CWnd对象
查看>>
html文本太长显示为省略号的方法
查看>>
Flask + WSGI + Nginx 云部署
查看>>
站立会议05(冲刺2)
查看>>
Java学习(final、static关键词)
查看>>
怎样判断网址是否被微信封 微信域名检测接口的实现
查看>>
解一元二次方程程序
查看>>
Homebrew macOS缺失包管理器
查看>>
WIN32 窗口类封装 框架实现部分
查看>>
操作系统
查看>>
记录 一次深夜救火:datanode.data.dir
查看>>