Multiple SSL sites with shared IPs

MikeAFl

Registered
Sep 24, 2005
1
0
151
I have WHM/cPanel 11.25 and I'm trying to use the include files to get this web config to work, but I'm about ready to give up and just manage httpd.conf manually.

I have 3 main domains, domain1.com, domain2.com and domain3.com. Each has a subdomain 'stage' - eg, stage.domain1.com.

All 3 main domains share a docroot, and all three subdomains share another docroot. Each main domain has its own IP address which is shared by the corresponding 'stage' subdomain. I want each domain on port 443, and each subdomain on 444. So the whole thing looks like this:
domain1.com = x.x.x.100:443
stage.domain1.com = x.x.x.100:444

domain2.com = x.x.x.200:443
stage.domain2.com = x.x.x.200:444

domain3.com = x.x.x.300:443
stage.domain3.com = x.x.x.300:444

I'm getting NameVirtualHosts warnings and port mixing warnings, and some weird resolutions - stage.domain3.com resolves to the main docroot, even though it looks the same as the other two subs, which resolve correctly.

I've been managing apache servers for years, and everything looks like it should work, but it doesn't. The include files make it all pretty cumbersome, but they look right.

Anybody got suggestions?
 

m4rc3

Active Member
Mar 26, 2010
39
2
58
There could be an Alias somewhere messing things up.
Code:
grep stage.domain3.com  /usr/local/apache/conf -ri
Other than that I can't think of anything.

There are just too many ways one could go about setting this up.

If you give us a bit more info as to how you are trying this, I'm sure that we can help.

How these domains were configured on the server, httpd.conf content, dns information, etc.

This kind of things are not very difficult but they are messy and confusing so we need as much data as possible in order to help out.
 
Last edited: