Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2010
    Location
    India
    Posts
    23

    Question How to fix port issue in tomcat

    Hello,

    I am totally in confusion as my managed VPS provider refused to help me..with tomcat custom configuration.
    Am trying to find a solution for :
    1) /http://myfamilymeet.com/w3search.myfam --> Wont work
    2) /http://myfamilymeet.com:8080/w3search.myfam --> Will work with port 8080

    In this same VPS I have another domain a24uall.info
    /http://a24uall.info/w3search.a24/ --> works

    The conf change I made is in /usr/local/apache/conf/jk.conf
    ++++++++++++++++++++++++
    ProxyPass /http://a24uall.info:8080/
    ProxyPassReverse /http://a24uall.info:8080/
    ++++++++++++++++++++++++

    But my real problem starts here..
    When I give the same conf settings like above to any other domain in /usr/local/apache/conf/jk.conf it wont work..

    See
    /http://myfamilymeet.com/w3search.myfam --> wont work..
    Hop I hv explained the problem correctly..Can any one here plz help ?
    Last edited by Infopro; 08-07-2010 at 04:29 AM.

  2. #2
    Member
    Join Date
    May 2010
    Posts
    321

    Default

    http://wiki.apache.org/tomcat/HowTo

    This describes all your problems, Best to take a look here.
    Last edited by GaryT; 07-24-2010 at 06:23 AM.

  3. #3
    Member
    Join Date
    Feb 2010
    Location
    India
    Posts
    23

    Thumbs down

    I see a lot of essay about tomcat and its working.. But nothing related to this problem nor any configurations of cpanel.

  4. #4
    Member
    Join Date
    Feb 2010
    Location
    India
    Posts
    23

    Smile

    Another update
    When I put in the below in /usr/local/apache/conf/jk.conf
    =====================
    ProxyPass /http://myfamilymeet.com:8080/
    ProxyPassReverse /http://myfamilymeet.com:8080/
    =====================
    instead of
    =====================
    #ProxyPass /http://a24uall.info:8080/
    #ProxyPassReverse /http://a24uall.info:8080/
    ======================

    then /http://myfamilymeet.com/w3search.myfam/]Family Search will load succesfully..

    So what I infer from this is that /usr/local/apache/conf/jk.conf file does not allow more than one entry to be added like the above..
    I tried adding entries for both the domain but it never worked

    Any one who knws abt this proxy setting to be customised to use for all the domains..in my server ??
    Last edited by Infopro; 08-07-2010 at 04:30 AM.

  5. #5
    Member Miraenda's Avatar
    Join Date
    Jul 2004
    Location
    Coralville, Iowa USA
    Posts
    244

    Default

    Try putting the code from jk.conf into the /usr/local/apache/conf/userdata/std/2/username/domain.com/ location (change username and domain.com to the username and domain in question). Check in the include, distill it, rebuild Apache and restart it to see the results. You should be able to put the include for both domains in their own separate userdata folders in that path.

    Of note, you could get this working if you've placed your war files into /usr/local/jakarta/tomcat/webapps by copying the extracted war files into /home/username/public_html/folder location (the war file's extracted folder name), then restarting Tomcat. The reason these aren't working on port 80 is that the folders aren't extracted into public_html I imagine, so only port 8080 can find them due to their current location.

  6. #6
    Member
    Join Date
    Feb 2010
    Location
    India
    Posts
    23

    Default Success

    haii all
    thanks for all ur help

    Finally I figured out the solution, thought to share that with all...
    Apache never routed the request to tomcat properly which caused the problem
    U can see the solution here :
    /http://webhostingdevelopment.com/forum/?p=737
    Last edited by Infopro; 08-07-2010 at 04:31 AM.

Similar Threads & Tags
Similar threads

  1. Tomcat + Cpanel port 8080
    By pablo314 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-27-2011, 01:44 PM
  2. easyapache tomcat - port changing
    By GEEKFOREVER in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-15-2008, 01:16 PM
  3. Tomcat and Port 80
    By Solokron in forum cPanel Developers
    Replies: 0
    Last Post: 08-05-2006, 04:52 PM
  4. port 8080 problems using tomcat
    By pelon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-14-2005, 04:17 AM
  5. Apache could not bind to port, telnetd, how do i fix?
    By Diatone in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-01-2003, 09:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube