The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomcat with parked domains and SSL

Discussion in 'General Discussion' started by pixelsoup, Dec 16, 2006.

  1. pixelsoup

    pixelsoup Registered

    Joined:
    Dec 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
Loading...

Share This Page