Tim,

Your example shows something I ran into when trying to get Tomcat to run
though Apache- basically if I load the mod_jk.conf file dynamically I
have problems with my virtual host listings in my httpd.conf.  For
example, I wanted different document roots for localhost, my LAN IP, and
my external IP.  I was able to do that with Apache as follows:

#My production site
<VirtualHost mydomain.com>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot "/usr/local/apache2/htdocs"
    ServerName mydomain.com:80
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>

#My dev site
<VirtualHost localhost>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot "/usr/local/apache2/htdocs"
    ServerName localhost:80
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>

This worked.  However when I pulled in the contents of mod_jk.conf it
killed my document root.  I ended up trying to pull the contents of some
of the virtual host listings from mod_jk.conf directly and put it into
the virtual host tags in httpd.conf.  So far this seems like it will
work- I can preserve my document root and still serve up jsp and
servlets.

Is this the "right" way to do this?  It does work, but forces me to go
in by hand and change multiple virtual host entries if I need to change
any structure here.

Thanks,
Bill


> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 21, 2003 6:35 PM
> To: Tomcat Users List
> Subject: Re: My Tomcat + Apache + mod_jk HOWTO
> 
> 
> Feel free to add the link to the Wiki too ... 
> http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
> 
> -Tim
> 
> John Turner wrote:
> > 
> > Looks good to me.  There's a need for more HOWTOs that 
> cover the RPM 
> > way
> > of doing things.
> > 
> > I appreciate the kind words, as well.  I'm glad I was able 
> to help in
> > some way.
> > 
> > Have fun!
> > 
> > John
> > 
> > Juan Nin wrote:
> > 
> >> Hi,
> >>
> >> I've written a kind of HOWTO for Tomcat + Apache + mod_jk. The 
> >> address is http://www.juanin.com/tomcat/
> >>
> >> I will appreciate any feedback, suggestions or critics!!!  :)
> >>
> >> Juan
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to