EverSpeed
01-07-2005, 12:28 PM
Can there be only one SSL certificate per IP address on a WHM/Cpanel system?
The reason I ask is because I had one SSL setup for an account on the shared IP and it works perfectly. I set up another SSL for another domain on the same shared IP and now when I go to the NEW domain's secure address, I'm taking to the FIRST site's secure pages (with lots of SSL warning from the browser).
How can I fix this?
I've moved the NEW domain to its own IP on the server, but do I need to change anything with the SSL to make it work right?
Right now, when I go to the NEW sites non-secure address, I'm seeing the default Cpanel "no page exists here" screen and not the website's normal content. And when I go to the NEW site's secure address, I'm still being taken to the FIRST site's content.
Thanks for the help!
Yes you need an IP for each SSL host on the server, no way around it, thats the way SSL works.
You will probably need to re-install the certificate on the system after moving the account to the new IP. I see no way around this.
And as for your "no page exists" problem, check your httpd.conf make sure the site you want to load is directly under the "NameVirtualHost" directive and make sure all the vhosts are set up correctly then restart apache.
EverSpeed
01-07-2005, 04:17 PM
That's what I thought. I removed the previous account and recreated a new one on the new IP. I then re-installed the SSL.
Things are still not going to the right places when I try to view the site, either secure or not.
The domain is knoxhosting.com. Maybe someone can help me makes heads or tails of this httpd.conf file.
Here's the section of the httpd.conf file where the configs for the second IP address begin. Do they look right?
NameVirtualHost 12.158.188.136:80
<VirtualHost 12.158.188.136>
ServerAlias www.knoxhosting.com knoxhosting.com
ServerAdmin webmaster@knoxhosting.com
DocumentRoot /home/knoxhost/public_html
BytesLog domlogs/knoxhosting.com-bytes_log
ServerName www.knoxhosting.com
User knoxhost
Group knoxhost
CustomLog domlogs/knoxhosting.com combined
ScriptAlias /cgi-bin/ /home/knoxhost/public_html/cgi-bin/
</VirtualHost>
<IfDefine SSL>
<VirtualHost 12.158.188.136:443>
ServerAdmin webmaster@knoxhosting.com
DocumentRoot /home/knoxhost/public_html
ServerName www.knoxhosting.com
CustomLog /usr/local/apache/domlogs/www.knoxhosting.com-ssl_log "%t %{version}c %{cipher}c %{clientcert}c"
User knoxhost
Group knoxhost
SSLEnable
SSLCertificateFile /usr/share/ssl/certs/www.knoxhosting.com.crt
SSLCertificateKeyFile /usr/share/ssl/private/www.knoxhosting.com.key
SSLLogFile /var/log/www.knoxhosting.com
UserDir public_html
ScriptAlias /cgi-bin/ /home/knoxhost/public_html/cgi-bin/
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
</IfDefine>
If I go to the IP address, http://12.158.188.136, I see the website (or rather the skeleton directory, there's nothing there yet). But if I go to http://www.knoxhosting.com, I get the default cPanel "no website here" page.
If I go to https://www.knoxhosting.com, I'm still getting directed to the secure pages (with SSL warnings) of the first IP address' site, which in this case is https://www.slstream.com, which is working fine on its own.
EverSpeed
01-07-2005, 04:23 PM
Hmmm... Well it's working now. It wasn't a few minutes ago. But it is now. Hehe.
NE-Adam
01-07-2005, 04:26 PM
It could possibly been a cached version of the page on your pc, or the DNS was taking it's time to update. :D
You might have been cacheing the old page or it was cached along the way to you from your ISP. Either way, glad you got it all figured and working :)