[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    RE: mod_jk Virtual Host Problems
From:       "Eric Rosenberry" <ericr () 1stetech ! com>
Date:       2001-08-31 18:46:14
[Download RAW message or body]

You are exactly right!  That was my problem.  I had not uncommented the line
"NamedVirtualHost *" from the example I used.  The Asterisk does work fine
as long as you have a "NamedVirtualHost" for it.

Thank you very much!

-Eric

-----Original Message-----
From: Jason Koeninger [mailto:jkoenin@jjcc.com]
Sent: Friday, August 31, 2001 11:25 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: mod_jk Virtual Host Problems

I may be mistaken, but this is an Apache problem, isn't it?

To do name based virtual hosts in Apache, you have to
have a NamedVirtualHost (not sure if that's exactly the right
directive) entry that gives the IP where you'll put  the hosts.
Then, the VirtualHost entries have to use that same IP
address in their declaration.  I'm not sure you can get away
with the asterick like that, but I could be wrong.

Given that you're only getting the response from the first one, I'm
going to guess that Apache's not getting to the others.  Try some
html files in your document roots to see if it's Apache or if it's
mod_jk.

Best Regards,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com

On Fri, 31 Aug 2001 11:16:24 -0700, Eric Rosenberry wrote:

>I am trying to get apache setup with four virtual hosts that send requests
>for .jsp files to four separate tomcat workers.  I am using mod_jk to do
>this with the commands below in my httpd.conf file.  My problem is that
>mod_jk seems to only pay attention to the first set of JKMount commands.
So
>the end result is that ALL my virtual hosts get sent to the worker called
>"service".
>
>I am using Tomcat 3.2.3 and the mod_jk from the following URL:
>http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i3
8
>6/
>
>Any help would be greatly appreciated!  I KNOW this can be done as the
>Tomcat documentation tells me how to do it with mod_jserv.
>
><VirtualHost *>
>    ServerAdmin admin@mydomain.com
>    DocumentRoot d:/webdocs/service
>    ServerName service.int.mydomain.com
>    ErrorLog d:/logs/service/apache/error.log
>    CustomLog d:/logs/service/apache/access.log common
>    JkMount /*.jsp service
>    JkMount /servlet/* service
></VirtualHost>
>
><VirtualHost *>
>    ServerAdmin admin@mydomain.com
>    DocumentRoot d:/webdocs/demo
>    ServerName demo.int.mydomain.com
>    ErrorLog d:/logs/demo/apache/error.log
>    CustomLog d:/logs/demo/apache/access.log common
>    JkMount /*.jsp demo
>    JkMount /servlet/* demo
></VirtualHost>
>
><VirtualHost *>
>    ServerAdmin admin@mydomain.com
>    DocumentRoot d:/webdocs/store
>    ServerName store.int.mydomain.com
>    ErrorLog d:/logs/store/apache/error.log
>    CustomLog d:/logs/store/apache/access.log common
>    JkMount /*.jsp store
>    JkMount /servlet/* store
></VirtualHost>
>
><VirtualHost *>
>    ServerAdmin admin@mydomain.com
>    DocumentRoot d:/webdocs/payment
>    ServerName payment.int.mydomain.com
>    ErrorLog d:/logs/payment/apache/error.log
>    CustomLog d:/logs/payment/apache/access.log common
>    JkMount /*.jsp payment
>    JkMount /servlet/* payment
></VirtualHost>
>
>-Eric
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic