Ok, here they are: <Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> I think those are the defaults. Martin Gainty wrote: > > Mike-- > in your server.xml please display for us defaultHost and Host name e.g. > > <Engine name="Standalone" defaultHost="???" > <Engine name="Catalina" defaultHost="???" > <Host name="????" > > M-- > This email message and any files transmitted with it contain confidential > information intended only for the person(s) to whom this email message is > addressed. If you have received this email message in error, please > notify > the sender immediately by telephone or email and destroy the original > message without making a copy. Thank you. > > ----- Original Message ----- > From: "mikat" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 12, 2007 5:07 PM > Subject: Apache+Tomcat w/ mod_jk, only works with "localhost" URL > > >> >> Hi, I finally got mod_jk working. I have used Tomcat for quite a while >> and >> finally integrated with Apache httpd, but I have a crappy situation and >> if >> anyone could help I'd greatly appreciate it. Right now my Tomcat webapps >> are only fetched through httpd if I use localhost in the URL. It doesn't >> work if I use my IP address. I would like both to work. >> >> I have been using the auto-generation thing in Tomcat to create a >> Tomcat5.5\conf\auto\mod_jk.conf which I then include in Apache's >> httpd.conf >> . I have instead tried just added code within httpd.conf to do this and >> then it works with both localhost and the IP address, but the nice >> autogeneration feature is gone and I'd have to update it manually for >> additional webapps. >> >> I found this link : >> http://mail-archives.apache.org/mod_mbox/tomcat-users/200305.mbox/[EMAIL >> PROTECTED] >> >> Which seems to describe the situation, but that doesn't help me since I >> don't have a domain name. I just want to use the IP address (and >> eventually >> both an internal 192 IP and an external IP). I have tried putting the IP >> address as the Host name in server.xml and also as an Alias and neither >> worked. >> >> I am using Tomcat 5.5, Apache 2.2 and a mod_jk.so module for Apache 2.2, >> in >> Windows XP right now. >> >> Here is some of the relevant code in the configuration files : >> >> ++++++++++++Tomcat's conf/server.xml (within Engine)++++++++++++++++++++ >> <Listener className="org.apache.jk.config.ApacheConfig" modJk="C:/Program >> Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" >> jkWorker="worker1" /> >> >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> ++++++++++++workers.properties (one in Tomcat/conf/jk/ and >> Apache/conf)+++++++ >> # Define 1 real worker using ajp13 >> worker.list=worker1 >> # Set properties for worker1 (ajp13) >> worker.worker1.type=ajp13 >> worker.worker1.host=localhost >> worker.worker1.port=8009 >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> +++++++++++Apache's conf/httpd.conf+++++++++++++++++++++++++++++++ >> Include "C:/Program Files/Apache Software Foundation/Tomcat >> 5.5/conf/auto/mod_jk.conf" >> >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> The mod_jk.conf is auto-generated in Tomcat/conf/auto/ like I said and >> has >> all the JkMount statements for each of my Tomcat webapps and uses the >> worker1 worker. >> >> -Michael >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Apache%2BTomcat-w--mod_jk%2C-only-works-with-%22localhost%22-URL-tf3568313.html#a9968461 >> Sent from the Tomcat - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: [EMAIL PROTECTED] >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: [EMAIL PROTECTED] > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Apache%2BTomcat-w--mod_jk%2C-only-works-with-%22localhost%22-URL-tf3568313.html#a9968889 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]