简体   繁体   中英

Grails app not working in tomcat

I have VPS and WHM installed on it, I deployed war from tomcat manager and copied everything from /var/lib/easy-tomcat7/webapps/myDomain to /home/myDomain/public_html/ Later I changed cp_jkmount.conf and added following contents

<IfModule mod_jk.c>
  JkMount /* ajp13
</IfModule>

Restarted apache and tomcat both, Still home page is being shown as plain text. you can see this here: www.rockinexams.com
Aparat from this, I have build the war using tomcat 7.0.42 as plugin, and the tomcat version present on VPS is same. There are no errors or stacktrace in logs.
Is there something that I am missing and should try? Thanks in advance.

Got the issue, www.rockinexams.com:8080 works but www.rockinexams.com doesn't, so I will have added following lines to my .htaccess file to make it work

SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME ajp13

its working perfect now. !!! Thanks all for suggestions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM