RichTek
05-12-2002, 12:55 PM
I have a Raq 4 with name based virtual sites. I want to use SSL on the virtual sites, but my problem is I have to use different IP addresses if I want SSL and my port forwarding machine will only forward port 80 to one internal IP.
How do I setup SSL on these virtual sites? What do most people do that have a RaQ 4 and SSL on multiple sites?
Thanks.
-RD
It is possible to setup SSL on multiple sites on the same IP. It just isn't possible through the admin. In order to setup up SSL over multiple sites, you will have to manually add the SSL to your Apache config. Keep in mind that by doing this, you will get more SSL warnings due to the fact that the RaQ builds the SSL cert to the domain name/IP. By doing this manually, you will have two warnings instead of one.
RichTek
05-12-2002, 06:35 PM
Do I edit httpd.conf? Do you know what I add to it?
Thank. - RD
Yes, you edit the httpd.conf. As for what you add, it depends. I haven't had a RaQ in a long time so I have forgotten which SSL it uses. I believe it was standard MOD_SSL. You can search http://www.google.com for a step by step tutorial on how to add it.
RichTek
05-14-2002, 09:58 AM
I haven't been able to find anything on Google or anywhere else on that. I changed my virtual servers IP so I could enable SSL and it didn't change anything except the IP in the httpd.conf.
I know there's a way to share SSL but that would make the virtual servers URL change to the URL which has SSL and I'd prefer not to do that.
I've heard of another way which involves port redirection. Maybe that's what I'm looking for. Does anyone know where I can get the info on that? Thanks. -RD
If you would like, I can take a look for you. Just PM me with your info. Here is basically what you will need. In order for you to be able to access the site on both port 80 and port 443 (SSL), you will need two seperate vhosts entries. To make things easier, place this directly underneath your existing entry for this address.
<VirtualHost 123.456.789.123:443>
DocumentRoot /path/to/domain/directory
SSLEnable
SSLCertificateFile /var/www/conf/ssl/www.ssldomain.com.realcert
SSLCertificateKeyFile /var/www/conf/ssl/www.ssldomain.com.key
ServerName www.somedomain.com
</VirtualHost>