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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.