tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gianni dalmasso <giada...@yahoo.it>
Subject mod_jk + context don't work ?
Date Sat, 08 Oct 2005 10:51:01 GMT
i configured several  html virtual hosts sites with jsps ; (apache 2.0 + mod_jk.+ tomcat 5.5.)
- virtual hosting managed by apache (name based virtual host)
- connector ajp13 for all jsps
- if a i create in server.xml : an host www.aaa.com + context infos --> everythink works
but it's no longer good 
- if i put the site under localhost (i.e adding anything to default server.xml) and the context
in a $CATALINA_HOME/conf/Catalina/localhost/ file , then : 
1: under the tomcat manager (pure tomcat space) --> it works 

2: if managed by apache --> the jsp cannot be reached.

it seems that the jsp managing passed by apache to tomcat have the bad context.

thanks in advance;

gianni

 

here is the configuration that DON'T work:

------------------------------------------------------------------------------------------------------

HTTPD.CONF 

.... 

Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf 

 

MOD_JK.CONF 

..... 

NameVirtualHost xx.yy.zz.kk:80

<VirtualHost xx.yy.zz.kk:80>

<Directory "/var/www/html/aaa" >

DirectoryIndex index.htm index.html index.jsp

</Directory>

ServerName www.aaa.com

DocumentRoot /var/www/html/aaa

JkMount /*.jsp ajp13

JkMount /servlet/* ajp13

</VirtualHost>

 

SERVER.XML 

the default (appBase is $CATALINA_HOME/conf/webapps)

 

the file : $CATALINA_HOME/conf/Catalina/locahost/aaa.xml 

<Context path="aaa"                (or "/aaa")

docBase="/var/www/html/aaa"

debug="0"

reloadable="true" >

</Context>

 
 
 

		
---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message