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.

JSP not working on a domain alias?

Discussion in 'General Discussion' started by Frenck, Dec 31, 2002.

  1. Frenck

    Frenck Active Member

    Joined:
    Nov 12, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hengelo, The Netherlands
    I have a little problem over here.

    on my domain (Frenck.nl) I have added a wildcard DNS record
    & added *.frenck.nl to the ServerAlias in the httpd.conf.

    So now all subdomains of Frenck.nl are showing Frenck.nl.

    This is working fine for everything except jsp.

    When I call:
    http://frenck.nl/test.jsp?var=CPANEL
    It works fine...

    But when I call:
    http://ASubdomain.frenck.nl/test.jsp?var=CPANEL
    It doesn't work.

    I get this error from Apache Tomcat (4.1):

    The requested resource (/test.jsp) is not available.

    (Althoug the file really exists!)

    How to solve this one?
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    The reason that this is happening is that Tomcat and Apache only allow .domain.com and www.domain.com by default.

    You would need to modify server.xml and httpd.conf for each subdomain that would need jsp support. Unfortuntly you cannot use wildcarding with jsp.
     
  3. Frenck

    Frenck Active Member

    Joined:
    Nov 12, 2002
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Hengelo, The Netherlands
    Thx for your reply.

    Than i need to go for the dirty fix..

    mod_rewrite :P
     
  4. davyboyhayes

    davyboyhayes Registered

    Joined:
    Dec 17, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Did mod_rewrite work?

    I know it has been an eternity since, but Frenck, did you get anywhere with it. Could you post any code. I've been trying various ways, and getting myself in a tiz!

    Thanks in advance.

    Davy Boy Out...
     
  5. Ivanner

    Ivanner Active Member

    Joined:
    Oct 13, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    It has been 4 years since then and the problem persists. Has this been officially reported as a bug?
     
Loading...

Share This Page