httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Oliver <joli...@john-oliver.net>
Subject Re: [users@httpd] One host, two SSL sites
Date Tue, 20 Jan 2009 23:06:43 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message