• 0

Apache and Tomcat


Question

Perhaps there is someone on this board who knows a bit about Tomcat and how it integrates with Apache. I am having trouble mapping my / (ROOT) context to be used by Apache (I want to be able to access my jsp's by typing http://mydomain/index.jsp). I have set up Apache 2.0.43 with Tomcat 4.1.18 successfully using mod_jk 1.2.2. I can access my non root contexts like /examples and /admin just fine. If I "JkMount /* ajp13" then it totally blocks my htdocs dir. I have a lot of php stuff in there so I can't do that. I have searched every where I could think of for an answer and I come to Neowin as a last resort. I was using IIS 5.1 with JRun 4.0 previously without blinking when setting it up, but I'm trying to go open-source ;). A solution would be greatly appreciated.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Well well,

It's funny. I get a reply on a general computer board in a mainly php forum before I get one on a fully Java board in a JSP forum. Thanks timdorr.

I have seen that done before. My only complaint is that it only uses the jsp (or servlets if i JkMount /*/servlet/ ajp13). So I would have to put all of my non-java stuff (html, css, jpg, etc.) in my htdocs dir. Do you know if there is a way to sort of merge the ROOT dir and htdocs dir so that i can have Tomcat process all my java stuff while still letting Apache access its own htdocs dir while all at the same time being able to use my non-java stuff in Tomcat. Am I asking to much out of the combination of servers? :unsure:

Thanks,

James

Edited by jl7c2
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.