咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何配置Apache 多端口

2016-08-03 01:20:22 6342次

配置httpd.conf 
监听多个端口 

代码如下:


# Listen: Allows you to bind Apache to specific IP addresses and/or 

# ports, instead of the default. See also the <VirtualHost> 

# 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:80 

Listen 8081 

Listen 8082 

Listen 8083 


#增加监听端口 

等以下内容都设置以后,可以通过netstat -n -a查看端口是否开启 

开启虚拟站点 

复制代码 代码如下:


# Virtual hosts 

#Include conf/extra/httpd-vhosts.conf 

#修改为 

# Virtual hosts 

Include conf/extra/httpd-vhosts.conf 


首页
最新活动
个人中心