httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] SSL + 2.40 redhat
Date Tue, 13 May 2003 07:56:53 GMT
>-----Original Message-----
>From: Thomas Strike []
>Can you do that?
>Forgive my ignorance, but this is a concept that I would like 
>clarity on.
>Can you use a "Listen" statement more than once without the
>last one overriding the ones that came before it.

Sure you can - Listen directives are additive. By default, apache
listens to every IP address on port 80. Then, once you start to specify
IP addresses, you defeat the default and apache listens ONLY to that
address. However, if you have more than one Listen address, apache will
listen to all specified addresses. 

My personal opinion is that as soon as things get more than a little
complicated (i.e. more than one IP address) you should abandon defaults
and specify each address explicitly. Typing is cheap, clarity is
priceless. Other people prefer to use wildcards - which is fine too,
either is good... As long as you and those who come after you can
understand what's going on.

>Doesn't the <VirtualHost> container have to specify literally 
>the same port that is named in the "NameVirtualHost" declaration?
>Wouldn't it be better to use a wild card declaring the 
>Virtual Host Ports.
><VirtualHost 192.1689.0.3:*>

This might work if all your port-based VHs are plain HTTP. But if any
are SSL, this won't work since you can't do name-based VHs on SSL. If
you want to save typing, it's probably better to wildcard the address
rather than the port:

Listen 80
NameVirtualHost *:80
<VirtualHost *:80>

Or if you don't care about ports, just go completely with defaults and

NameVirtualHost *
<VirtualHost *>

Check up the tutorial for more details..

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 
>Tom S.
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message