Jump to content

Apache/Tomcat config


thesteo

Recommended Posts

Hi,

I have an apache web server that connects with my tomcat server using ajp13 connector. Currently I have this:

 

www.myserver.com/webapp1/

 

and this brings up my tomcat webapp. My config looks like this:

 

]JkWorkersFile /usr/local/tomcat/apache-tomcat-5.5.25/conf/workers.properties 
JkLogFile /usr/local/tomcat/apache-tomcat-5.5.25/logs/mod_jk.log 
JkLogLevel debug 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " 
JkRequestLogFormat "%w %V %T" 
JkMount /webapp1/* worker1

 

 

And my workers file is

 


worker.list=worker1,inprocess 
worker.worker1.port=
.worker1.host=127.0.0.1 
worker.worker1.type=ajp13 
worker.worker1.lbfactor=1 
worker.worker1.connection_pool_size=10 
worker.worker1.connection_pool_timeout=600 
worker.worker1.socket_keepalive=1 
worker.loadbalancer.type=lb 
worker.loadbalancer.balance_workers=lbworker

 

 

Ok, so thats all great. But I want to know how to pass all requests onto that webapp. So that

 

www.myserver.com/

 

will bring up the same page as

 

www.myserver.com/webapp1/

 

does currently.

Thank you in advance

Stephen

Link to comment
https://forums.phpfreaks.com/topic/75572-apachetomcat-config/
Share on other sites

Its been 6 years since I used the apache-tomcat connector. From what I can remember, the connector hands off files with a .jsp etc. extension to tomcat seamlessly.

 

Recently, I run tomcat and apache on the one box. I use mod_proxy with apache to forward requests to tomcat behind the scenes.

 

-steve

Link to comment
https://forums.phpfreaks.com/topic/75572-apachetomcat-config/#findComment-383178
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.