Apache 可以listen 多个端口不?

Apache 可以listen 多个端口不?

比如我有两个网卡,同时绑在一个apache上提供服务.
可以, 一个Listen就行 Listen 80 不要加IP
可以监听多网卡 多端口
当然可以
考虑下做基于端口的虚拟主机。


QUOTE:
原帖由 swordfish.cn 于 2007-9-26 00:09 发表
考虑下做基于端口的虚拟主机。

这个是我在http.conf找到的片断:
[code]#
# 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 (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

<IfDefine SSL>
Listen 80
Listen 443
LoadModule ssl_module modules/ApacheModuleSSL.dll
SSLMutex sem
SSLRandomSeed startup builtin
SSLSessionCache none
SSLLog logs/SSL.log
SSLLogLevel warn
<VirtualHost localhost:443>
SSLEngine On
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
#SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
#SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
#SSLProtocol all -SSLv3
</VirtualHost>
</IfDefine>

#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
[code]
要怎么改呢?
试了一下
多加一行Listen 最行.
但基于端口的VirtualHost怎么写呀?
<VirtualHost *:要监听的端口>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /www/docs/dummy-host.example.com
    ServerName dummy-host.example.com
</VirtualHost>
Thanks very much.