Apache2 just listening to https?

Oliver Fromme olli at lurza.secnetix.de
Thu Jul 28 12:17:47 GMT 2005


Uzi Klein <uzi at bmby.com> wrote:
 > Oliver Fromme wrote:
 > > Uzi Klein <uzi at bmby.com> wrote:
 > > > Actually, SSL can not be configured per name vhost. (or at least can not 
 > > > work)
 > > > Because SSL handshake is used before http headers, it just can't be done.
 > > 
 > > You can configure SSL perfectly fine per virtual host,
 > > provided that they have separate addresses.  You can
 > > even use SSL for virtual hosts that share an address,
 > > if they listen on different ports (in this case you
 > > can use redirects for convenience, so users don't have
 > > to type the port numbers).
 > > 
 > > It's correct that SSL doesn't work for pure name-based
 > > virtual hosts (not using "special tricks"), but nobody
 > > was talking about that.
 > > 
 > 
 > note the *name vhost*

Only _you_ were talking about named virtual hosts.  :-)
They are not an issue in this case.

 > and the user's conf.

The user's configuration, as far as it has been (partially)
shown, contains just two virtual hosts which run on different
ports (port 80 for for HTTP and port 443 for HTTPS).
So name-based virtual hosts are _not_ an issue here.

Name-based virtual hosts would be a problem if you run
multiple of them on the same IP address _and_ on the same
port with SSL (usually 443).  That's not the case here.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co KG, Marktplatz 29, 85567 Grafing
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"If you aim the gun at your foot and pull the trigger, it's
UNIX's job to ensure reliable delivery of the bullet to
where you aimed the gun (in this case, Mr. Foot)."
        -- Terry Lambert, FreeBSD-hackers mailing list.


More information about the freebsd-stable mailing list