httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vince maxey <vama...@yahoo.com>
Subject Re: [users@httpd] Configuring Apache2 with Tomcat 5.5
Date Wed, 11 Jan 2006 14:57:30 GMT
Thank you for your reply Deitmar.

I do have mod_jk.conf in Tomcat 5.5/conf/auto.  I also
have mod_jk.so in Apache2/modules.  Based on what I've
read and the instructions I've followed, I'm fairly
certain that I have all required files and config
references in place for both Tomcat and Apache.

I modified the Apache document root per your
suggestion and I do now get a browser-interpreted
presentation of an index page with Apache when I
simply enter the server IP address (192.168.1.5). 
However, when I attempt to add folders and pages to
this path (192.168.1.5/path/page.jsp) I get the
message Page cannot be found.

You mention jk_mount.  

I didn't read anything regarding specifying jk_mount
directives when following installation instructions. 
Within mod_jk.conf I see many references to Tomcat
example jsp pages (i.e. JkMount
/jsp-examples/include/foo.jsp  ajp13) so I'm getting
the feeling that I need to add my files onto this
document.  

To confirm this, I typed
http://192.168.1.5/jsp-examples/include/foo.jsp and
I'm still getting 'Page not found'.  I will begin
researching this file and what I need to do.

I guess I don't have a solid grasp on what to use as
Apache root and then how to link it to the Tomcat
application pages I have developed.  

I will do some more research from here, but perhaps
you can offer a bit more insight on what my
configuration is lacking.

thanks again

--- Dietmar.Mueller@eurotours.at wrote:

> Hello,
> 
> I look over your config and I've two questions:
> 
> 1st: Are in /auto/mod_jk.conf the jk_mount
> directives?
> 
> 2nd: You set Dookument root to the same directory
> where
> tomcat has the applications. You have now 2 ways to
> find the path to the tomcat applications. One way is
> over
> the classic static way ( and I think this is way why
> you get
> the source!) and the other way is over jk. Pls
> change the
> document root and try again.
> 
> regards Dietmar
> 
> 
> 
> 
> vince maxey <vamax27@yahoo.com> am 10.01.2006
> 17:08:39
> 
> Bitte antworten an users@httpd.apache.org
> 
> An:     users@httpd.apache.org
> Kopie:
> Thema:  [users@httpd] Configuring Apache2 with
> Tomcat 5.5
> 
> 
> Problem:  Both Apache and Tomcat are installed and
> working fine independently (or were until I began
> modifying config files to connect them).  At this
> point, Tomcat is still functional.  I can type
> http://localhost:8080/path/page.jsp and all is well
> with my application.
> 
> However when I enter http://localhost/path/page.jsp,
> I
> get the source code of my jsp page displayed in the
> browser, not the actual page.  (I did get the
> default
> Apache success page when first installed and I do
> get
> Syntax OK confirmation after modifications made.)
> 
> I have searched and have not found any specific
> resolutions related to these releases.  I have taken
> resolution steps indicated for earlier releases with
> this issue but steps taken have not resolved it.
> 
> 1.  mod_jk-apache-2.0.55.so was downloaded, renamed
> mod_jk.so and put into C:/Program Files/Apache
> Group/Apache2/modules folder
> 
> 2.  Tomcat server.xml modifications:
> 
> <Listener
> className="org.apache.jk.config.ApacheConfig"
>  modJk="c:/program files/apache
> group/Apache2/modules/mod_jk.so" />
> 
> <Connector
> className="org.apache.ajp.tomcat5.Ajp13Connector"
>  port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0"/>
> 
> <Listener
> className="org.apache.jk.config.ApacheConfig"
>  append="true" forwardAll="false" modJk="c:/program
> files/apache group/Apache2/modules/mod_jk.so" />
> 
> (C:/Program Files/Apache/Tomcat
> 5.5/conf/auto/mod_jk.conf was generated from
> configuration instructions followed.)
> 
> 3.  Apache httpd.conf modifications:
> 
> ServerRoot "C:/Program Files/Apache Group/Apache2"
> ServerName 192.168.1.5:80
> LoadModule jk_module modules/mod_jk.so
> DocumentRoot "C:/Program Files/Apache/Tomcat
> 5.5/webapps/ROOT"
> <Directory "C:/Program Files/Apache/Tomcat
> 5.5/webapps/ROOT">
> Include "C:/Program Files/Apache/Tomcat
> 5.5/conf/auto/mod_jk.conf"
> 
> I have two machines on my local network.  When I
> type
> http://machine1/path/page.jsp from machine2 I also
> get
> the source code displayed, however if I type
> http://machine1:8080/path/page.jsp I do get the page
> and the application is functional.
> 
> I need folks outside my LAN to access this site.  I
> may have firewall or other issues yet to resolve,
> but
> I need to be able to access pages with two computers
> sitting side by side before I can begin to
> investigate
> other obstacles.
> 
> Is there something I have still neglected? or have I
> inadvertently gotten something cross-wired?
> 
> Any information, suggestions, solutions would be
> greatly valued.
> 
> thank you
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message