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.

Apache + SSL + mod_jk (Tomcat)

Discussion in 'EasyApache' started by Dackiller, May 18, 2010.

  1. Dackiller

    Dackiller Member

    Joined:
    May 8, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Caracas-Venezuela
    Hi all,

    I have installed Apache 1.3 + Tomcat 5.5.28 (installed via EasyApache)

    The apache is working perfect at port 443, but the Tomcat it's not woking, tomcat it's send me the jsp file download directly without run scripts...

    So, my client need tomcat SSL support...

    I did install SSL via WHM to the domain (it's working over ip dedicate site).

    ¿ Howcan i do to apache and tomcat will be works together ?

    I know tomcat will be working if i change the server.xml, but i feel this is not right way to do that...

    Thank you guys...
     
  2. Dackiller

    Dackiller Member

    Joined:
    May 8, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Caracas-Venezuela
    [solved] ssl tomcat 5.5.28

    1. Create a account with dedicate ip (require to support SSL)
    2. WHM -> Install Servlets (Select target account and push install)
    3. WHM -> Install a SSL Certificate and Setup the Domain (complete the wizard)
    4. Edit virtual host at 443 port of the account target.

    <IfDefine SSL>

    <VirtualHost 192.168.0.1:443>
    ServerName domain
    ServerAlias www.domain.com
    DocumentRoot /home/user/public_html
    ServerAdmin webmaster@domain.com
    UseCanonicalName off
    UserDir public_html
    <IfModule mod_suphp.c>
    suPHP_UserGroup userdomain userdomain
    </IfModule>
    <IfModule !mod_disable_suexec.c>
    User userdomain
    Group userdomain
    </IfModule>
    BytesLog /usr/local/apache/domlogs/domain.com-bytes_log
    ScriptAlias /cgi-bin/ /home/userdomain/public_html/cgi-bin/
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/domain.com.crt
    SSLCertificateKeyFile /etc/ssl/private/domain.com.key
    CustomLog /usr/local/apache/domlogs/domain.com-ssl_log combined
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

    # With this conf, tomcat will be working like default but over SSL/Apache
    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    </IfModule>


    </VirtualHost>

    Bye....
     
Loading...

Share This Page