SSL with multiple virtual hosts and only one IP

Image taken from http://www.artlebedev.com/everything/defendius/

I was writing this long post about how to use rewrite rules to make Apache query itself and serve various sites through the same SSLed virtual host using only one IP. After about four hours of struggling with it I thought I was done but then while writing this article I found out I was wrong. Something was not working as expected. Did I face another 4 hours of Apache struggling?

Each extra IP at my hosting provider, which is great, costs 1$/month. My time is way more expensive than that and I hope yours is too. I was surprised when they asked me to justify the need for a third IP, but SSL certificate was a good enough justification and everything continued painlessly from there.

So, “SSL with multiple virtual hosts and only one IP”: don’t do it, it’s not worth it.

I bet I surprised you with the outcome of this post!

Reviewed by Daniel Magliola. Thank you!

About these ads

One thought on “SSL with multiple virtual hosts and only one IP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s