• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mod_jk for Apache/Tomcat

 
octavyn pittman
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused... perhaps someone can clear my head...
I have installed and have running Apache and Tomcat on Win98. Everything appears to be fine, but going through the documentation, the authors state that for Apache to work with Tomcat, one needs to put an include statement in Apache's httpd.conf file referrencing the the mod_jk.so plug-in (previously mod_jserv.so) which then apparently redirects to Tomcat.
Why is this necessary when everything appears to be running fine for servelets, etc? (Pardon my ignorance--I'm new to JSP forum) What's more, if I want to include the mod_jk, the online help says that I need to compile it using a C++ compiler. Any thoughts?
OP
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

you will already have a DLL in your modules folder under
Apache. If not, mod_jk will be avail as a download from
the binaries for win32 under the Apache downloads.
You donot necessarily need C++.
Everything is fine, but then you are running two servers
on two ports each doing its own job. Also Tomcat can serve
html pages similar to Apache. However, Tomcat is not
recommended as a commercial server for HTML due to several
reasons. Actually, your tomcat documentation has a page
on how_to_mod_jk. I am assuming you know this. This will have
more details.
If you need specific links let us know, I will dig out apache.
regds.
- satya
 
octavyn pittman
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There was the key I was missing...two servers on two ports. I was assuming that even though I was connecting to Tomcat through 8080, I was utilizing the Apache engine somehow... I think I assumed this because the JSP pages in the example page would not work unless the Apache server was started _after_ the Tomcat server was running.

I did go through the how_to page, but I was failing to understand why I needed to do this. I forgot that my goal was to emulate a truly scalable dev environment. Thx, I will redouble my efforts,
OP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic