J. Greenlees wrote: > 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> oops, forgot the ssl cert lines in those vhost containers. --------------------------------------------------------------------- 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