Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site running Apache and it contains multiple VHOSTS. I don't have an option to setup the machine with multiple IP addresses, but I would like to have some way of accessing each VHOST somehow over SSL. Is there a way to do this?

I guess I can't expect https://realhttps, https://vhost1 and https://vhost2 to work, but is there an easy way to configure mod_rewrite to make https://realhttps/vhost1 fetch content from http://vhost1 and https://realhttps/vhost2 fetch content from http://vhost2?

share|improve this question

migrated from Nov 3 '10 at 13:52

This question came from our site for pro webmasters.

up vote 2 down vote accepted

This is nearly a FAQ, but I couldn't (rapidly) find another answer, so:

You want Server Name Indication, aka SNI. The theory is at , the practical for Apache is at .

The problem is that it requires a fairly modern apache, and a fairly modern SSL, and (this is the killer) browser support. Read those two pages and you should know if SNI is suitable for you.

If it's not, restate the mod_rewrite question.

share|improve this answer
Thanks. Wasn't what I was looking for, but it's better than what I was looking for an the requirement for new browser is ok. Thank you. – grm Nov 3 '10 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.