Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member Frenck's Avatar
    Join Date
    Nov 2002
    Location
    Hengelo, The Netherlands
    Posts
    29

    Default JSP not working on a domain alias?

    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?
    sowwy for my bad english

  2. #2
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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.
    Regards,
    David
    Forum Moderator

  3. #3
    Member Frenck's Avatar
    Join Date
    Nov 2002
    Location
    Hengelo, The Netherlands
    Posts
    29

    Default

    Thx for your reply.

    Than i need to go for the dirty fix..

    mod_rewrite :P
    sowwy for my bad english

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    1

    Smile Did mod_rewrite work?

    Quote Originally Posted by Frenck
    Than i need to go for the dirty fix..

    mod_rewrite :P
    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. #5
    Member
    Join Date
    Oct 2003
    Posts
    28

    Default

    It has been 4 years since then and the problem persists. Has this been officially reported as a bug?

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-04-2011, 09:07 PM
  2. jsp not working in subdirectories
    By its_joy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-08-2008, 02:04 PM
  3. .jsp working on 8080 but not on 80
    By the_bobara in forum cPanel Developers
    Replies: 11
    Last Post: 09-19-2006, 08:46 PM
  4. JSP not working
    By mtl in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2005, 05:24 AM
  5. rk domain and sub domain not working with JSP
    By wyrus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2005, 01:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube