I don't have a 3.3.1 install available, so I'm not sure how much more I can help. What do your Apache logs say when you make a request for that URL? What does mod_jk.log say?
John > -----Original Message----- > From: Stephen Graham [mailto:sg3@;bigpond.com] > Sent: Thursday, October 24, 2002 8:45 PM > To: Tomcat Users List > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > I'm using Tomcat 3.3.1 and Apache 1.3.19 on RedHat 7.1. I > haven't made any > changes to server.xml as it seems that this version of Tomcat > is unlike > earlier versions in that contexts are defined in the > $TOMCAT_HOME/conf/apps.xml file which I've created myself to > contain the > following. > > > <?xml version="1.0" encoding="ISO-8859-1"?> > <webapps> > <Context path="/jalapeno" > docBase="/opt/usr/src/jalapeno" > debug="9" > reloadable="true" > > <SimpleRealm filename="conf/users/jalapeno-users.xml" /> > <LogSetter name="jalapeno_tc.log" path="logs/jalapeno.log" /> > <LogSetter name="jalapeno_servlet_log" > path="logs/servlet_jalapeno.log" > servletLogger="true"/> > </Context> > > <Context path="/pepper" > docBase="/opt/usr/src/pepper" > debug="9" > reloadable="true"> > </Context> > </webapps> > > ================================================= > My workers.propertes file contains the following. > ================================================= > > workers.tomcat_home=/tomcat > workers.java_home=/java > ps=/ > worker.list=ajp12, ajp13 > worker.ajp12.port=8007 > worker.ajp12.host=titan.sgdev.com.au > worker.ajp12.type=ajp12 > worker.ajp12.lbfactor=1 > worker.ajp13.port=8009 > worker.ajp13.host=titan.sgdev.com.au > worker.ajp13.type=ajp13 > worker.ajp13.lbfactor=1 > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=ajp12, ajp13 > worker.inprocess.type=jni > worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps > )tomcat.jar > worker.inprocess.cmd_line=start > worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$ > (ps)i386$(ps)c > lassic$(ps)libjvm.so > worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)in > process.stdout > worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)in > process.stderr > > ================================================== > My mod_jk.conf file is as follows. > ================================================== > > ########## Auto generated on Fri Oct 25 10:21:24 EST 2002########## > > <IfModule !mod_jk.c> > LoadModule jk_module libexec/mod_jk.so > </IfModule> > > JkWorkersFile > "/opt/usr/jakarta-tomcat-3.3.1/conf/jk/workers.properties" > JkLogFile "/opt/usr/jakarta-tomcat-3.3.1/logs/mod_jk.log" > JkLogLevel emerg > JkMount /jalapeno ajp13 > JkMount /jalapeno/* ajp13 > JkMount /pepper ajp13 > JkMount /pepper/* ajp13 > JkMount /admin ajp13 > JkMount /admin/* ajp13 > JkMount /examples ajp13 > JkMount /examples/* ajp13 > JkMount /test ajp13 > JkMount /test/* ajp13 > JkMount /soap ajp13 > JkMount /soap/* ajp13 > JkMount /axis ajp13 > JkMount /axis/* ajp13 > > === > > When I try to access the '/pepper' context by using > http://titan.sgdev.com.au/pepper/login.jsp it doesn't work - > the browser > (IE6) just says "Opening page...". But when I add the 8080 > port number to > this URL it works. > > What shoudl my 'host' entry in server.xml look like? I can't find any > example of it, in Tomcat 3.3.1 or earlier 3.2.x versions. > > Thanks again. > Stephen Graham. > > > > -----Original Message----- > > From: Turner, John [mailto:JTurner@;AAS.com] > > Sent: Friday, 25 October 2002 02:04 > > To: 'Tomcat Users List' > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > There should be a Host element in server.xml that matches > > whatever hostname > > you are trying to reach. If the ServerName in httpd.conf is > > "foobar", and > > "foobar" has JkMount statements, there should be a Host element > > with a name > > parameter set to "foobar" in server.xml. > > > > This is happening piecemeal. It would probably go a lot faster > > if you could > > tell us all at once: > > > > - which exact URL are you trying to access > > - which versions you're using > > - what is your workers.properties as it exists now > > - what is your server.xml file as it exists now > > - what is your httpd.conf (or mod_jk.conf) as it exists now > > > > There shouldn't be 2 declarations for "/pepper" unless you > want that URL > > available on both the default Apache server (global > ServerName) as well as > > some other host. Right now, there is a declaration for it > in both the > > auto-generated mod_jk.conf and in the actual httpd.conf. > > > > In workers.properties, you can remove all references to ajp12. > > > > John > > > > > -----Original Message----- > > > From: Stephen Graham [mailto:sg3@;bigpond.com] > > > Sent: Thursday, October 24, 2002 10:05 AM > > > To: Tomcat Users List > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > The only JkMount statements I have are in the > automatically created > > > mod_jk.conf file and the httpd.conf file. The contents of > each are as > > > follows. > > > > > > > > > ########## Auto generated on Thu Oct 24 23:07:26 EST > 2002########## > > > > > > <IfModule !mod_jk.c> > > > LoadModule jk_module libexec/mod_jk.so > > > </IfModule> > > > > > > JkWorkersFile > > > "/opt/usr/jakarta-tomcat-3.3.1/conf/jk/workers.properties" > > > JkLogFile "/opt/usr/jakarta-tomcat-3.3.1/logs/mod_jk.log" > > > > > > JkLogLevel emerg > > > > > > JkMount /jalapeno ajp13 > > > JkMount /jalapeno/* ajp13 > > > > > > JkMount /pepper ajp13 > > > JkMount /pepper/* ajp13 > > > > > > JkMount /admin ajp13 > > > JkMount /admin/* ajp13 > > > > > > JkMount /examples ajp13 > > > JkMount /examples/* ajp13 > > > > > > JkMount /test ajp13 > > > JkMount /test/* ajp13 > > > > > > JkMount /soap ajp13 > > > JkMount /soap/* ajp13 > > > > > > JkMount /axis ajp13 > > > JkMount /axis/* ajp13 > > > ------------------------------------ > > > Relevant bit of httpd.conf > > > > > > Alias /pepper "/pepper" > > > <Directory "/pepper"> > > > Options Indexes FollowSymLinks > > > </Directory> > > > > > > JkMount /pepper/servet/* ajp13 > > > JkMount /pepper/*.jsp ajp13 > > > > > > <Location "/pepper/WEB-INF/"> > > > AllowOverride None > > > deny from all > > > </Location> > > > > > > <Location "/pepper/META-INF/"> > > > AllowOverride None > > > deny from all > > > </Location> > > > ------------------------------- > > > > > > I just tried changing the worker.ajp12.host and > > > worker.ajp13.host properties > > > from localhost to the name of my server as specified in > > > httpd.conf and it > > > didn't make any difference. > > > > > > I haven't made any changes to the server.xml file and it > > > doesn't contain an > > > references to the host name. > > > > > > Regards. > > > Stephen Graham. > > > > > > > > > > -----Original Message----- > > > > From: Turner, John [mailto:JTurner@;AAS.com] > > > > Sent: Thursday, 24 October 2002 23:41 > > > > To: 'Tomcat Users List' > > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > > OK. > > > > > > > > Do you have any JkMount statements? If so, what are they? > > > > > > > > Workers.properties should look like this (for a simple setup): > > > > > > > > # BEGIN workers.properties > > > > # > > > > # (optional) make this equal to CATALINA_HOME > > > > workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 > > > > # > > > > # (optional) make this equal to JAVA_HOME > > > > workers.java_home=/usr/java/j2sdk1.4.0_01 > > > > # > > > > # (optional) > > > > ps=/ > > > > > > > > worker.list=ajp13 > > > > # Definition for Ajp13 worker > > > > # > > > > worker.ajp13.port=8009 > > > > # change this line to match apache ServerName and Host name > > > in server.xml > > > > worker.ajp13.host=localhost > > > > worker.ajp13.type=ajp13 > > > > # > > > > # END workers.properties > > > > > > > > John > > > > > > > > > > > > > -----Original Message----- > > > > > From: Stephen Graham [mailto:sg3@;bigpond.com] > > > > > Sent: Thursday, October 24, 2002 9:34 AM > > > > > To: Tomcat Users List > > > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > I am using mod_jk it is loaded with the following statement > > > > > in the top of > > > > > the 'mod_jk.conf' file. > > > > > > > > > > <IfModule !mod_jk.c> > > > > > LoadModule jk_module libexec/mod_jk.so > > > > > </IfModule> > > > > > > > > > > I have a workers.properties file and I've edited the > > > > > following properties to > > > > > reflect my system setup. > > > > > > > > > > workers.tomcat_home > > > > > workers.java_home > > > > > worker.inprocess.jvm_lib > > > > > > > > > > When I try to access the context without specifying port 8080 > > > > > the browser > > > > > just waits and waits, with activity indicator > constantly spinning. > > > > > > > > > > When I access the context specifying port 8080 in the URL it > > > > > works properly > > > > > and without error. > > > > > > > > > > Any suggestions greatly appreciated. > > > > > > > > > > Thanks for your responses. > > > > > > > > > > Regards > > > > > Stephen Graham. > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Turner, John [mailto:JTurner@;AAS.com] > > > > > > Sent: Thursday, 24 October 2002 22:59 > > > > > > To: 'Tomcat Users List' > > > > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > > > > > > > > > > I'm not clear what you have set up already and what > you don't. > > > > > > > > > > > > It looks like you are using mod_jk. Do you have > all the pieces? > > > > > > mod_jk.so > > > > > > and a workers.properties file? What happens when > you access the > > > > > > URL without > > > > > > port 8080? Is there an error message? If so, what is it? > > > > > > > > > > > > John > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Stephen Graham [mailto:sg3@;bigpond.com] > > > > > > > Sent: Thursday, October 24, 2002 8:53 AM > > > > > > > To: Tomcat Users List > > > > > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > > > > > > > Ok great, thanks for the answer. Do you have any > ideas about > > > > > > > where I might > > > > > > > start looking to fix this? > > > > > > > > > > > > > > I've tried placing alias entries in smb.conf to > get this to > > > > > > > work but it > > > > > > > doesn't seem to make any difference - I still can't > > > > > access the context > > > > > > > without specifying port 8080. For example. > > > > > > > > > > > > > > > > > > > > > I've got this in smb.conf > > > > > > > --------------------------------------- > > > > > > > > > > > > > > Include /tomcat/conf/auto/mod_jk.conf > > > > > > > > > > > > > > Alias /pepper "/pepper" > > > > > > > <Directory "/pepper"> > > > > > > > Options Indexes FollowSymLinks > > > > > > > </Directory> > > > > > > > > > > > > > > JkMount /pepper/servet/* ajp13 > > > > > > > JkMount /pepper/*.jsp ajp13 > > > > > > > > > > > > > > <Location "/pepper/WEB-INF/"> > > > > > > > AllowOverride None > > > > > > > deny from all > > > > > > > </Location> > > > > > > > > > > > > > > <Location "/pepper/META-INF/"> > > > > > > > AllowOverride None > > > > > > > deny from all > > > > > > > </Location> > > > > > > > --------------------------------------- > > > > > > > > > > > > > > and this in mod_jk.conf along with other stuff. > > > > > > > > > > > > > > JkMount /pepper ajp13 > > > > > > > JkMount /pepper/* ajp13 > > > > > > > > > > > > > > --------------------------------------- > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Turner, John [mailto:JTurner@;AAS.com] > > > > > > > > Sent: Thursday, 24 October 2002 22:14 > > > > > > > > To: 'Tomcat Users List' > > > > > > > > Subject: RE: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Yes, you should. If you are using 8080, Apache > isn't even > > > > > > > involved in the > > > > > > > > request. > > > > > > > > > > > > > > > > John > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: Stephen Graham [mailto:sg3@;bigpond.com] > > > > > > > > > Sent: Wednesday, October 23, 2002 7:41 PM > > > > > > > > > To: Tomcat Users List > > > > > > > > > Subject: Apache Tomcat URLs - don't want port 8080 > > > > > > > > > > > > > > > > > > > > > > > > > > > I'm wondering about integration of Tomcat > with Apache. I'm > > > > > > > > > using Tomcat > > > > > > > > > 3.3.1 and Apache server 1.3.19. > > > > > > > > > > > > > > > > > > I've inlcuded the following in my smb.conf file > > > > > > > > > > > > > > > > > > "Include /tomcat/conf/auto/mod_jk.conf" > > > > > > > > > > > > > > > > > > and run $TOMCAT_HOME/bin/startup.sh jkconf to > > > create the file. > > > > > > > > > > > > > > > > > > I then start Apache, then Tomcat. This is all > > > seems to work > > > > > > > > > correctly as > > > > > > > > > there are no error messages, and I can access contexts > > > > > > > using the usual > > > > > > > > > http://host:8080/context/jsp syntax and it works > > > correctly. > > > > > > > > > > > > > > > > > > So here's my question: > > > > > > > > > > > > > > > > > > I expect to be able to access the Tomcat > contexts without > > > > > > > > > having to specifiy > > > > > > > > > the 8080 port number. It seems to me that > > > specifying the 8080 > > > > > > > > > port number > > > > > > > > > completely bypasses Apache, and has Tomcat do all web > > > > > > > > > serving. If they are > > > > > > > > > truly integrated I should be able to access them with > > > > > URLs such as > > > > > > > > > http://host/context/some.jsp shouldn't I ? > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > Stephen Graham. > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > To unsubscribe, e-mail: > > > > > > > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > > > > > > > For additional commands, e-mail: > > > > > > > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > To unsubscribe, e-mail: > > > > > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > > > > > For additional commands, e-mail: > > > > > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > To unsubscribe, e-mail: > > > > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > > > > For additional commands, e-mail: > > > > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > > > -- > > > > > > To unsubscribe, e-mail: > > > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > > > For additional commands, e-mail: > > > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > > > > > > > > > > > -- > > > > > To unsubscribe, e-mail: > > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > > For additional commands, e-mail: > > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > For additional commands, e-mail: > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > -- > > To unsubscribe, e-mail: > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > -- > To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
