I am trying to host multiple webapps under tomcat 6 behind apache2 via mod_jk.
I am at my wits end with this. the problem i am facing that both domains seems to point to a single tomcat 'domain'.
my server.xml looks like this:
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="dogself.com">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="dogself.com" appBase="webapps-dogself"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
<Host name="natashacarter.com" appBase="webapps-natashacarter.com"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
my workers.properties looks like this:
worker.list=dogself,natashacarter
worker.dogself.port=8009
worker.dogself.host=dogself.com
worker.dogself.type=ajp13
worker.natashacarter.port=8010
worker.natashacarter.host=natashacarter.com
worker.natashacarter.type=ajp13
finally my apache vhosts look like this:
<VirtualHost 69.164.218.75:80>
ServerName dogself.com
DocumentRoot /srv/www/dogself.com/public_html/
ErrorLog /srv/www/dogself.com/logs/error.log
CustomLog /srv/www/dogself.com/logs/access.log combined
JkMount /* dogself
</VirtualHost>
and
<VirtualHost 69.164.218.75:80>
ServerName natashacarter.com
DocumentRoot /srv/www/dogself.com/public_html/
ErrorLog /srv/www/dogself.com/logs/error.log
CustomLog /srv/www/dogself.com/logs/access.log combined
JkMount /* natashacarter
</VirtualHost>
when i log into manager webapp on both dogself.com and natashacarter.com, i can deploy to a context path on dogself, and that same contextpath will appear on natashacarter - so i know for a fact that this is the same tomcat domain.
edit: just found this in my mod_jk log
[Sun Feb 20 21:15:43 2011] [28546:3075521168] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with /
[Sun Feb 20 21:16:44 2011] [28548:3075521168] [info] ajp_send_request::jk_ajp_common.c (1496): (dogself) all endpoints are disconnected, detected by connect check (1), cping (0), send (0)
but not sure why dogself wouldnt respond
please help a brother out