Apache多端口配置
2016-12-26 23:18
351 查看
默认为80端口
Listen 80
增加监听接口(可以添加多个)
Listen 2525
Listen 2424
添加配置(两种方法)
1.统一配置在extra/httpd-vhosts.conf中
在http.conf中找到
打开extratpd-vhosts.conf 添加 配置
2.http.conf最后面添加
备注:其实上面的添加的配置代码不一定是这些,特别是在开发环境中安装的集成环境,最好是找到http.conf 原先就有的Directory 设置,直接复制一份代码,修改下DocumentRoot 配置下Listen就可以,实践证明这样出错的几率最低。
Listen 80
增加监听接口(可以添加多个)
Listen 2525
Listen 2424
添加配置(两种方法)
1.统一配置在extra/httpd-vhosts.conf中
在http.conf中找到
# Virtual hosts # Include conf/extratpd-vhosts.conf
打开
# Virtual hosts Include conf/extratpd-vhosts.conf
打开extratpd-vhosts.conf 添加 配置
<VirtualHost *:2525> ServerAdmin webmaster@dummy-host.localhost DocumentRoot "D:/software/wamp/www/pfws/" ServerName localhost ErrorLog "logs/dummy-host.localhost-error.log" CustomLog "logs/dummy-host.example.com-access.log" common <Directory D:/software/wamp/www/pfws/> Options FollowSymLinks AllowOverride all Order deny,allow Allow from all </Directory> </VirtualHost>
2.http.conf最后面添加
NameVirtualHost *:2525 <VirtualHost *:2525> ServerName localhost:2525 DocumentRoot “D:/software/wamp/www/pfws/″ </VirtualHost>
备注:其实上面的添加的配置代码不一定是这些,特别是在开发环境中安装的集成环境,最好是找到http.conf 原先就有的Directory 设置,直接复制一份代码,修改下DocumentRoot 配置下Listen就可以,实践证明这样出错的几率最低。
相关文章推荐
- 转:Ubuntu上apache多端口配置虚拟主机的方法
- linux环境apache多端口配置虚拟主机的方法
- wamp apache 多端口虚拟主机的配置方法
- apache 多端口配置
- 配置 apache 多端口
- 多IP多端口apache虚拟主机的配置的设置
- Linux-CentOS XAMPP Apache配置多端口
- Apache 多端口多站点配置实例
- apache 多端口访问 配置
- linux下apache配置多端口对应多个虚拟目录
- window apache 多端口配置
- windows下apache多端口虚拟主机的配置方法
- apache 配置 多端口 多虚拟目录
- apache配置多端口对应多个虚拟目录
- 配置 Apache+php多端口多站点(转载)
- linux 下Apache 多端口多站点配置方法
- apache配置多端口对应多个虚拟目录
- Apache多站点配置 多虚拟目录 多端口
- Ubuntu上apache多端口配置虚拟主机的方法
- 如何在Apache中配置多端口访问