Re: One host, two SSL sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 20, 2009 at 09:55:03PM +0100, Miguel Angel Tormo Alfaro wrote:
> In conclusion, I would go for the virtualhost solution, too much hassle otherwise.

OK, so...

Since two apaches just doesn't seem to want to work, how do I go about
getting this to work with IP VirtualHosts?

Googling turns up a *lot* of threads about SSL and Name-Based
VirtualHosts.  I found some about people who seem to have SSL IP
VirtualHosts working, but nothing about how they got there.

I have two physical servers, each with it's own /etc/httpd/* hierarchy,
certs, etc.  Do I need to rename my /etc/httpd/conf.d/ssl.conf and put
all SSL stuff in httpd.conf?

I'm guessing I need something like:

<VirtualHost 172.16.202.25:443>
    DocumentRoot        /var/www/html
    SSLEngine on
    SSLCertificateFile    /usr/local/apache/certs/my_cert.crt
    SSLCertificateKeyFile /usr/local/apache/certs/my_cert.key
</VirtualHost>

<VirtualHost 172.16.202.26:443>
    DocumentRoot        /var/www/html2
    SSLEngine on
    SSLCertificateFile    /usr/local/apache/certs/my_cert.crt
    SSLCertificateKeyFile /usr/local/apache/certs/my_cert.key
</VirtualHost>

Or is there only some stuff that needs to be commented out of ssl.conf
(like logs, certs)?  I just can't find anything that clearly tells me
what I need to do to turn two different physical SSL servers into
VirtualHosts on one, and I need as much done correctly from the get-go,
as they're both production sites... I can be down for a minute or two,
but I can't experiment for hours.


-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux