SSL IP Requirements

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I've setup SSL two times now, and it worked out fine both times. The sites were hosted on the same server, and the server had two public IPs. As I understand it, Apache requires SSL enabled virtual hosts to have a dedicated IP address.

Now I'm wondering if it's possible to have one public IP address, and multiple virtual private IPs (eth0:1, eth0:2, etc) with SSL working just fine.

This for example works:

<VirtualHost 67.5.5.5:443>
SSLEngine on
...
</VirtualHost>

But will this?

<VirtualHost 192.168.1.10:443>
SSLEngine on
...
</VirtualHost>

I know that works, but if I got a certificate authority to verify, would the browser get a warning?

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

The certificate doesn't validate the IP address, it validates the domain name, so you should be fine.

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Ok. If it doesn't work, you owe me Sticking out tongue

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

You must have missed my sig, then. Smiling

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Haha. That's pretty clever. I need one of those...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.