如何配置Apache 多端口
配置httpd.conf
監(jiān)聽(tīng)多個(gè)端口
代碼如下:
# 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
#增加監(jiān)聽(tīng)端口
等以下內(nèi)容都設(shè)置以后,可以通過(guò)netstat -n -a查看端口是否開(kāi)啟
開(kāi)啟虛擬站點(diǎn)
復(fù)制代碼 代碼如下:
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
#修改為
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
會(huì)員登錄
賬號(hào)登錄還沒(méi)有賬號(hào)?立即注冊(cè)