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.

index.JSP as deafult page doesn't work

Discussion in 'General Discussion' started by jeroman8, May 21, 2004.

  1. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Help!!

    Using "index.jps" as default page doesn't work !!

    I'v added it in the DirectoryIndex in httpd.conf.
    Can't remember if it has worked before...

    Please...
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Do other jsp pages work? Have you restarted apache?
     
  3. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Hi, all the JSP pages work but it doesn load them
    as the default page in a directory.

    index.html works as a default page in a directory but
    the index.jsp does not even thought it's in the
    httpdconf.

    I'v restarted apache.
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
  5. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Yes it is working fine when going directly to
    to the index.jsp page.

    What is wrong is that it's like the entry in httpd.conf
    doesn't work. But it's there along with index.htm, index.php, main.html etc...
     
  6. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Maybe you have an .htaccess file that's interfering?
     
  7. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Hi, no I have checked so no .htaccess is there.
    This is on all accounts.

    index.jp, index.js and index.php etc is all working.
    The only difference I can see is the:


    AddType text/html .jsp line in httpd.conf that doesn't excist for the other files.
     
  8. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    What shows up in the browser when you load www.yourdomain.com with only index.jsp in the public_html?
     
  9. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    The catalog tree (?)
    I can see all the files, like FTP - you know what I mean right ?!

    It's like index.jsp is not listed as a default page in httpdconf, but it is - aling with index.html, index.php etc....
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Are you using Tomcat5? If so, you can leave out that addtype line. Try that.
     
  11. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    no, I use tomcat 4 on that server
     
  12. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    If using Tomcat 4 you the AddType for .jsp in your httpd.conf and the index.jsp in the DirectoryIndex line.
     
  13. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    yepp, thats what it is now.

    Can this has anything to do with tomcat ??
    I mean if I just make something up like "whatever.zp"
    and put it in Directoryindex - should that work as well ?
    Ok, maybe it doesn't show but apache should tyr to
    open it since it's listed inDirectoruindex ?
     
  14. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    DirectoryIndex can include any file name, BUT be carefull doing that as apache reads it in order, so you may not get the results you expect. Also check your httpd.conf as I've seen a few that have multiple DocumentIndex directives.
     
  15. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Seems it had something to do with Tomcat afterall.
    I just installed Tomcat 5, had tomcat 4 before.

    And now it is working like a charm :)
     
Loading...

Share This Page