httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <>
Subject Re: [users@httpd] Mass Virtual Hosting + SSL
Date Wed, 08 Apr 2009 11:11:36 GMT
On Wed, Apr 8, 2009 at 3:59 AM, Nick Cooper
<> wrote:
> 2009/4/8 Ed Lazor <>
>> > Despite common quotations to the contrary, you /can/ successfully use
>> > Name-based Virtual Hosts with SSL. The caveat is that you have to use
>> > the same certificate and all the same SSL settings for all the virtual
>> > hosts, but that seems to be exactly what you're asking for. The first
>> > vhost that Apache finds for SSL will be used for configuring the SSL
>> > aspects, but beyond that, it will do further processing with the
>> > correct vhost as long as you have them listening on SSL port.
>> >
>> > I think that's all there is to it. I know I have it working on my
>> > server: if you're having trouble, I can reference my config files for
>> > you, but I won't get a change to till tomorrow night (Eastern Time).
>> >
>> > Hope that helps,
>> > -Brian
>> Hi Brian,
>> Thanks for the info.  Does this require VirtualHost containers for each
>> domain?
>> I ran a quick test.  Using the VirtualDocumentRoot parameter, creating
>> one virtual host container with the IP of that I want to use...  I can
>> access all of the local domains via https, but the document root
>> always points to the virtualhost container used to provide the SSL
>> info - or, I found that removing the documentroot parameter in there
>> caused the system to revert to the general documentroot specified in
>> httpd.conf.  I'm testing the parameters within PHP, using phpinfo, if
>> that helps.
>> -Ed
> Yes it is possible to do with a VirtualDocumentRoot but the thing to
> remember is the value of DocumentRoot does not equal VirtualDocumentRoot.
> If DocumentRoot is important in your applications you can use
> multiple VirtualHosts with SSL by using different port numbers.
Hash: SHA1

Sorry, I don't know about VirtualDocumentRoot (never used it, don't
really know what it's for), but if you mean that you're using PHP to
see what the DocumentRoot is, for instance, I think a better test is
to just set up different pages in the different document roots and
test it that way (i.e., see which page gets served).

In my set up, I use a different vhost container for each host, and
they each have their own DocumentRoot.

- -Brian

- --
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from:

Version: GnuPG v1.4.9 (GNU/Linux)


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