LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-08-2012, 01:05 PM   #1
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
Can mod_jk and mod_proxy run together in the Apache ?


I tired to google about it but couldn't find the answer. After searching so long my Basic Instinct ;-) say it cannot be done but still to be sure can both modules mod_jk and mod_proxy run together in Apache server without creating problem ?
 
Old 02-08-2012, 02:00 PM   #2
Harlin
Member
 
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 38
Can you summarize your use case here? The answer technically "no", there shouldn't be problems but depending on how they're being used could cause a problem.

</H>
 
Old 02-08-2012, 02:16 PM   #3
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
I have the apache server running tomcat with mod_jk and the mod_proxy was installed by default in it. I have not stop mod_proxy so I feel I am getting the error in logs files saying "request failed: error reading the headers" because of it.

Last edited by ratotopi; 02-08-2012 at 02:21 PM.
 
Old 02-08-2012, 04:55 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by ratotopi View Post
I have the apache server running tomcat with mod_jk and the mod_proxy was installed by default in it. I have not stop mod_proxy so I feel I am getting the error in logs files saying "request failed: error reading the headers" because of it.
No, it's not mod_proxy. If you're not using it you can disable it by adding a # in front of the "LoadModule proxy_module ..." directive(s) in apache config file.

Regards
 
Old 02-13-2012, 01:19 PM   #5
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Original Poster
Rep: Reputation: 6
do does it mean mod_proxy and mod_jk cannot run together ?
 
Old 02-13-2012, 02:01 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by ratotopi View Post
do does it mean mod_proxy and mod_jk cannot run together ?
Sure they can coexist. By that I mean that they both can be loaded into apache and serve different things.
You can use mod_jk to parse jsp pages or servlets by a tomcat server and mod_proxy to proxy some backend server. Note that the backend server is not necessarily the same tomcat. It can be a different tomcat or a complete different server (like a webmail server).

What I don't think is correct, is to use both modules to parse the same URI. E.g. something like that:
Code:
JkMount /foo/* ajp13
...
ProxyPass /foo/ http://tomcat.server:8080/foo/
...

Last edited by bathory; 02-13-2012 at 02:09 PM. Reason: typo
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balancing - ipvsadm with apache (mod_proxy) to another apache not working romeo_tango Linux - Server 1 01-12-2012 03:21 AM
Apache mod_proxy log mahmoud Linux - Software 1 06-07-2010 01:54 AM
mod_jk or mod_proxy to connect apache to tomcat exceed1 Linux - Server 1 05-30-2009 03:27 PM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 08:57 PM
how can i run my helloworld servlet in apache-tomcat-mod_jk? doublefailure Linux - Software 1 04-28-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration