John Oliver wrote: > 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> > > Yup, those would work. I might go more: <VirtualHost 172.16.202.25:443> ServerAdmin @gmail.com DocumentRoot /var/www/html ServerName http://domain.com ErrorLog /var/log/httpd/domain.com-error_log CustomLog /var/log/httpd/domain.com-access_log common <Directory "/home/shawan/public_html"> allow from all Options +Indexes </Directory> </VirtualHost> <VirtualHost 172.16.202.26:443> ServerAdmin @gmail.com DocumentRoot /var/www/html2 ServerName http://domain.com ErrorLog /var/log/httpd/domain.com-error_log CustomLog /var/log/httpd/domain.com-access_log common <Directory "/home/shawan/public_html"> allow from all Options +Indexes </Directory> </VirtualHost> > Or is there only some stuff that needs to be commented out of ssl.conf > (like logs, certs)? not commented out, but specified for each vhost. > 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. > > > --------------------------------------------------------------------- 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