Re: [users@httpd] Configuring Apache2 with Tomcat 5.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> am 10.01.2006 17:08:39

Bitte antworten an users@xxxxxxxxxxxxxxxx

An:     users@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx







---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux