apache 2.2 - Is it possible to point 2 virtual hosts with different domains and unique IP addresses to the same folder?
is it possible to point 2 virtual hosts with different domains and unique ip addresses to the same folder? If so should I be aware of anything? Also is it possible for each of those domains to have SSL certificates even though the are pointing to the same directory?
Sorry if I sound confused.
Thanks,
Darren
Answer
Is it possible to point 2 virtual hosts with different domains and unique ip addresses to the same folder?
Yes.
Should I be aware of anything?
You should read up on virtual hosting in Apache.
Also is it possible for each of those domains to have SSL certificates even though the are pointing to the same directory?
It depends. If they can use the same certificate, and that certificate is a wildcard certificate it's quite simple.
e.g. If you have a two domains foo.example.com
and bar.example.com
you could use a wildcard SSL certificate on *.example.com
for both of them.
Otherwise, you'll have to try Server Name Indication, which is a bit more complicated. The browser support for this is still rather dismal. If you attempt this, then all Windows XP users will be unable to access your site using IE or Safari. More exceptions are detailed on the previously linked Wikipedia page.
Comments
Post a Comment