Name based virtual hosts, different ports

Name based virtual hosts, different ports

am 01.07.2007 19:45:56 von Markus Mayer

Hi again,

I was just wondering wether it is possible to do name-based virtual
hosting while listening on multiple ports. The idea is to listen on 443
to enable SSL but at the same time reuse the definitions that are made
in the *:80 Virtual Host definition. Is that possible or do I have to
copy everything?

Regards,
Markus

Re: Name based virtual hosts, different ports

am 02.07.2007 07:51:41 von unknown

Post removed (X-No-Archive: yes)

Re: Name based virtual hosts, different ports

am 02.07.2007 08:24:29 von HansH

"Markus Mayer" schreef in bericht
news:5eq7hkF38atv3U1@mid.uni-berlin.de...
> I was just wondering wether it is possible to do name-based virtual
> hosting while listening on multiple ports. The idea is to listen on 443 to
> enable SSL but at the same time reuse the definitions that are made in the
> *:80 Virtual Host definition. Is that possible or do I have to copy
> everything?
Just include a file having the common directives where needed
http://httpd.apache.org/docs/2.2/mod/core.html#include
like

include www.domain.tld




SSLEngine on
include ssl.conf
include www.domain.tld



Be aware having multiple name based vhosts on a single certificate is
tricky, though not impossible: apparent keyword 'SubjectAltName'
http://wiki.cacert.org/wiki/VhostTaskForce
http://www.entrust.net/ssl-products.htm

HansH