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.

Redirect 8080 requests to 80 port - Tomcat problem at cPanel server

Discussion in 'General Discussion' started by sh4ka, Jan 31, 2008.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Hello,

    Yesterday I installed tomcat on a RHEL 4 + cPanel and httpd 2.0.63 server using easyapache3, process was ok, jsp pages are loading fine using http://site.com/example.jsp , but servlets, are not working using http://site.com/example, how ever, if I load http://site.com:8080/example it loads the servlet perfect.

    I read something about redirecting all traffict from port 80 to 8080, but you know.. this is a shared server, and that would affect all customers on the server.

    So, mod_jk seems to be the only solution, now I read many documents over the web, but no one seems to be working to configure apache2 and mod_jk that is installed using easyapache3 script.

    In my httpd.conf file, i have this:

    Code:
    LoadModule jk_module modules/mod_jk.so
    Include "/usr/local/apache/conf/jk.conf"
    At jk.conf i have this content:

    Code:
    JkWorkersFile /usr/local/jakarta/tomcat/conf/workers.properties
    JkLogFile /usr/local/apache/logs/mod_jk.log
    JkLogLevel info
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkRequestLogFormat "%w %V %T"
    
    What configuration should I add (and where) to accessing Tomcat on Port 80: From example.com:8080 to example.com

    Any suggestions are appreciated.

    Thanks.
     
Loading...

Share This Page