Tomcat with parked domains and SSL

pixelsoup

Registered
Dec 21, 2005
2
0
151
hello,

I have a client that is trying to have one main domain running on SSL and tomcat with two additional parked domains. He has created a redirect so that https://domain.org and https://domain.net re-direct to https://domain.com. The issue is that when you try and access either the .org or .net domain, the default landing page for tomcat is displayed..

Any suggestions as to how I fix this?

Thanks in advance.
 

freedman

Well-Known Member
Feb 13, 2005
314
5
168
AFIK, this can't work.

SSL doesn't support virutal hosts.

so, your redirects for those domains will only work because non SSL:
http://DOMAIN.net gets resolved to the ip, the apache server see's the domain NAME requested, matches a virtualhost entry, see's the redirect, and issues the redirect command.

with an httpS connection, the hostname, I believe, isn't known by the server, so you can't do the same kind of name matching to isue a redirect.


I'm not familiar enough with tomcat specifically to provide a better explanation.