Apache设置多端口映射
来源:互联网 发布:淘宝异常订单处理中心 编辑:程序博客网 时间:2024/05/21 10:35
这个方法在网上很多,再次记录只是记录我自己在修改时候的过程。
先在配置文件里监听81端口
httpd.conf文件下找到Listen 80下面添加一条Listen 81,大概在57行这里
#Listen 12.34.56.78:80Listen 80Listen 81
在vhost配置文件下配置映射的路径和端口,按照文档里给好的80端口配置进行相应的修改
NameVirtualHost *:81<VirtualHost *:81> ServerAdmin webmaster@d.localhost DocumentRoot "D:/xampp/htdocs/wordpress" ServerName localhost ErrorLog "D:/xampp/htdocs/wordpress/log" CustomLog "logs/dummy-host2.localhost-access.log" common</VirtualHost>
配置完之后一直显示登陆错误,没有权限进去,这里其实是我一开始xampp写成了xamp,之前我还修改了226行的
<Directory /> AllowOverride none Require all granted</Directory>
先是注释掉了第二行,后来将denied改成了granted
后来印证这两者对于映射没有影响,这里是对目录访问权限的配置。
重启Apache之后就可以访问localhost:81了。
0 0
- Apache设置多端口映射
- apache 多端口设置
- Apache设置多端口,多IP映射多站点
- apache同一ip设置多端口访问
- apache 配置多端口
- apache配置多端口
- apache开启多端口
- apache配置多端口
- 配置 apache 多端口
- apache 多端口配置
- Apache多端口配置
- Apache配置多端口
- Apache 设置多端口访问,多域名访问
- dockerfile 多端口映射 expose
- dockerfile 多端口映射 expose
- nginx多端口映射80
- apache2多端口设置
- window apache 多端口配置
- Introduction to Latent Dirichlet Allocation
- servlet-mapping之url-pattern详解
- OpenGL坐标系
- 也说说LDA(Latent Dirichlet Allocation)——理论篇
- 学习Topic Model(主题模型)--Latent Dirichlet Allocation(LDA) 的一些摘要
- Apache设置多端口映射
- LDA(latent dirichlet allocation)的应用
- Latent Dirichlet Allocation(LDA)主题模型理论
- Latent Dirichlet Allocation(LDA)主题模型算法实现及源码解析
- 黑马程序员——集合类(2)
- LDA(Latent Dirichlet Allocation)主题模型算法
- makefile详细用法
- Latent dirichlet allocation note
- 输出二叉树中随机两个结点的最小公共父结点