Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    123

    Lightbulb How to enable .jsp page support for the domain.

    How to enable .jsp page support for the domain.

    If the .jsp page is showing coding instead of real webpage then you need to check the server settings such as
    root@server[~]#vi /etc/httpd/conf/httpd.conf
    Search domain name and Uncomment the following line.
    Code:
         Include "/usr/local/apache/conf/userdata/std/1/username/domainname/*.conf"
    save and exit
    root@server[~]# cd /usr/local/apache/conf/userdata/std/1/
    root@server[~]# mkdir username
    root@server[~]# cd username
    root@server[~]# mkdir domainname
    root@server[~]# cd domainname
    root@server[~]# vi cp_jkmount.conf
    Enter the following code into the file cp_jkmount.conf.
    Code:
            <IfModule mod_jk.c>
      		JkMount /*.jsp ajp13
      		JkMount /servlet/* ajp13
    		JkMount /servlets/* ajp13
    		JkMount /*.do ajp13
    	 </IfModule>
    Then check the entry into the tomcat configuration file.

    root@server[~]# vi /usr/local/jakarta/tomcat/conf/server.xml
    Open above file and add the following code at the end of the file.
    Code:
           <Host name="domainname" appBase="/home/username/public_html">
              <Alias>www.domainname</Alias>
              <Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
              <Context path="/manager" debug="0" privileged="true"
                  docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
              </Context>
           </Host>
    Save and exit
    Then restart the tomcat
    root@server[~]# /usr/local/jakarta/tomcat/bin/./shutdown.sh
    root@server[~]# /usr/local/jakarta/tomcat/bin/./startup.sh
    root@server[~]# /scripts/restartsrv tomcat
    Then restart the httpd service
    root@server[~]# /etc/init.d/httpd stop
    root@server[~]# /etc/init.d/httpd startssl

    Note : Please replace the "username" with original Username and the "domainname" with original domain name .
    Last edited by ronniev; 06-11-2008 at 07:15.

  2. #2

    Default Just do the above operation in simple steps.

    To enable .jsp pages in your hosting account.

    /scripts/addservlets --domain=domain.com

    To disable .jsp pages in your hosting account.

    /scripts/remservlets --domain=domain.com

    These cPanel scripts does the same operation.

    Presoon.
    presoon.com
    Bob.

  3. #3
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by presoonjohn View Post
    To enable .jsp pages in your hosting account.

    /scripts/addservlets --domain=domain.com

    To disable .jsp pages in your hosting account.

    /scripts/remservlets --domain=domain.com

    These cPanel scripts does the same operation.

    Presoon.
    presoon.com
    Bob.
    Hi Bob...

    to the Eukhost community forums & thank you for your input on the JSP addition/removal from SSH
    Hope you enjoy your stay here ! Good luck...

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •