apache 创建多端口监听

httpd.conf

将
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
改为
LoadModule vhost_alias_module modules/mod_vhost_alias.so

将
#Include conf/extra/httpd-vhosts.conf
改为
Include conf/extra/httpd-vhosts.conf

httpd-vhosts.conf

#监听多个端口
Listen 80
Listen 8003
Listen 8004

VirtualHost *:80
    #监听80端口,地址是 D:\apache24\htdocs
    DocumentRoot D:\apache24\htdocs
/VirtualHost

VirtualHost *:8003
    DocumentRoot D:\apache24\htdocs/8003
/VirtualHost

VirtualHost *:8004
    DocumentRoot D:\apache24\htdocs/8004
/VirtualHost

apache 创建多端口监听

原文地址:http://www.cnblogs.com/siyu1915/p/7258594.html


最新回复(0)
/jishuBz5nfFAoTpVV66RwlDqRVdcV5tLhO477fX2GAw_3D_3D4719372
8 简首页