If you look at my WinXP HOWTO, you will see a section that says:


"NOTE: in Tomcat, virtual hosts are "Hosts". That is, as far as Tomcat is concerned, localhost is a virtual host. So, if you want to setup www.server-a.com and www.server-b.com, you just need more copies of the Host container included in the default server.xml that comes with Tomcat. Doing it in production is a little more complicated than that, but that's the essence of how to get Tomcat to work for more than localhost. Because this HOWTO describes using the Apache auto-config option of JK, getting Tomcat to work with your virtual hosts means Apache will work. This means that you can test your URL and your application contexts using ":8080" on your URL without affecting Apache. When you have it working, simply restart Apache so that it picks up the new mod_jk.conf file generated by Tomcat and you should be well on your way."

I suggest you take a moment to read about virtual hosts, especially how to configure them in Apache's httpd.conf.

John

Xingqun Jiang wrote:

Lenny,

I followed the steps you gave, adding the lines in Apache httpd.conf file,
and,

IT IS WORKING !!!!!!!!!!!!!!!!!!!!!!!!

:-)

I am suprised how you figured out this problem, since in John's tutorial it
did address to do this. Anyway....

I have spent too much time to make tomcat and apache together, and you saved
me from the trap. Thank you a ton!!! :-)

Xingqun


----- Original Message ----- From: "Lenny Sorey" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 2:41 PM
Subject: Re: Problem in Integrating Tomcat with Apache




Lance,

I've used John Turners method for Windows 2000 many times without a

problem.


One thing you might want to do if you have followed all the instructions

is to add the following


to the bottom of your Apache conf file:






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to