Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    1

    Default Domain for Jsp

    I have installed the tomcat 5.0 on my cpanel server which is running Fedora 1, i would like to know how to let the domain to have the premisson to run .jsp file?

  2. #2
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Hi,

    Just go to your WHM and click add servlets.

    BTW, I am not too happy with the way the Tomcat install is set up, I would recomend doing two things.

    1) go to /etc/httpd/conf/workers2.properties and take out the jkstatus thing (I think it is insecure to leave that up)

    Check it out now:

    http://your.ip.number.here/jkstatus

    2) I like to edit the entries in the /usr/local/jakarta/jakarta-tomcat-4.1/build/conf/server/xml file that are set up by the WHM.

    It should only have _one_ host entry in the server.xml . Having two causes my app to be loaded twice (once for each domain alias).


    I change this:

    <Host name="domain.name" appBase="/home/username/public_html">

    <Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>

    <Host name="www.domain.name" appBase="/home/username/public_html">

    <Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>




    to this:

    <Host name="domain.name" appBase="/home/username/webapps" autoDeploy ="true">
    <!-- domain aliases -->
    <Alias>www.domain.name</Alias>

    <!-- context -->
    <Context path="" reloadable="true" docBase="/home/username/webapps/" debug="1">


    </Host>

    HTH

Similar Threads & Tags
Similar threads

  1. JSP not working on a domain alias?
    By Frenck in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-06-2009, 04:46 PM
  2. Park domain on JSP site ??
    By furquan in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2005, 06:08 AM
  3. 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
  4. How to active domain on JSP~
    By allenhui in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2004, 01:07 PM
  5. How to active domain on JSP~
    By allenhui in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-28-2004, 03:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube