Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 webmasters.stackexchange.com Nov 3 '10 at 13:52

This question came from our site for pro webmasters.

1 Answer 1

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 http://en.wikipedia.org/wiki/Server_Name_Indication , the practical for Apache is at http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI .

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

 
discard

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.