Apache2 just listening to https?

Oliver Fromme olli at lurza.secnetix.de
Thu Jul 28 10:44:21 GMT 2005


Uzi Klein <uzi at bmby.com> wrote:
 > Eirik Øverby wrote:
 > > On Jul 28, 2005, at 10:01 AM, Roger Grosswiler wrote:
 > > > <VirtualHost *:80>
 > > > ServerName freebsd.domain.net
 > > > ServerAlias freebsd.domain.net
 > > > DocumentRoot /usr/local/www/data
 > > > </VirtualHost>
 > > 
 > > Make sure you are not enabling SSL globally, but for each vhost  
 > > individually.
 > 
 > 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.

 > > Try the telnet trick mentioned by others, but simply type "GET / HTTP/ 
 > > 1.0" <ENTER><ENTER><ENTER>

Actually, <ENTER> twice is sufficient.  :-)

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.

cat man du : where Unix geeks go when they die


More information about the freebsd-stable mailing list