Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-26-2011, 01:14 AM
|
#1
|
|
Member
Registered: Aug 2006
Posts: 151
Rep:
|
Intergating apache and tomcat with jk_mod.so
I am trying to integrate Apache 2.2.8 and Tomcat 6.0.33
The steps that I have done.
- Downloaded and compiled mod_jk
- Edited the worker.properties file like :
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
- Edited the httpd.conf
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /examples/* worker1
As per the configuration, if I try http://localhost/examples, I should be getting the tomcat apllication. Instead, I get a message "File does not exist: /var/www/html/ABC/examples" in the httpd error_log.
Anyone, any clue on this
Last edited by bittus; 08-26-2011 at 01:37 AM.
|
|
|
|
08-26-2011, 04:35 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Quote:
|
As per the configuration, if I try http://localhost/examples, I should be getting the tomcat apllication. Instead, I get a message "File does not exist: /var/www/html/ABC/examples" in the httpd error_log.
|
Shouldn't that be /var/www/html/examples
|
|
|
|
08-26-2011, 11:21 AM
|
#3
|
|
Member
Registered: Aug 2006
Posts: 151
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Shouldn't that be /var/www/html/examples
|
@bathory /var/www/html/ABC is my doucument root.
|
|
|
|
08-26-2011, 12:15 PM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
What is your distro?
I guess from the docroot path, that it's RHEL based. If that's the case I would suspect a selinux permissions problem.
Regards
|
|
|
|
08-28-2011, 01:08 AM
|
#5
|
|
Member
Registered: Aug 2006
Posts: 151
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
What is your distro?
I guess from the docroot path, that it's RHEL based. If that's the case I would suspect a selinux permissions problem.
Regards
|
@bathory
Your are right. It's RHEL based.
Do you have any idea of the required SElinux context ?
|
|
|
|
08-28-2011, 03:17 AM
|
#6
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Hi,
I'm not a rhel fan, so I know little about selinux. Anyway you should try to disable it temporarily and see if that's the case. Run
and check.
If it's selinux, relabel the docroot as in the example here.
Regards
|
|
|
1 members found this post helpful.
|
08-31-2011, 12:37 AM
|
#7
|
|
Member
Registered: Aug 2006
Posts: 151
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Hi,
I'm not a rhel fan, so I know little about selinux. Anyway you should try to disable it temporarily and see if that's the case. Run
and check.
If it's selinux, relabel the docroot as in the example here.
Regards
|
@bathory,
Thanks for the feedback and sorry for the late update.
I was wondering how I missed, SElinux is disabled on the server. So that should not be the issue
I will brief my requirement again.
Now, in order to reach the tomcat service we should type in http://192.168.1.102:4455/examples/m...1034&room=chat
I would like to access the service by just typing in http://www.mydomain.com/tc/examples/...1034&room=chat
Any suggestions are welcome.
I would also like to know, if mod_rewrite will help !!!
|
|
|
|
08-31-2011, 02:59 AM
|
#8
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Hi,
You can use mod_proxy or mod_proxy ajp for this.
Take a look at this howto for details.
Regards
|
|
|
1 members found this post helpful.
|
09-02-2011, 01:43 AM
|
#9
|
|
Member
Registered: Aug 2006
Posts: 151
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Hi,
You can use mod_proxy or mod_proxy ajp for this.
Take a look at this howto for details.
Regards
|
@bathory
Thats a well explained tutorial. And that worked for me finally 
Thanks a lot.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:02 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|