tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <>
Subject Re: Okay. this is getting annoying.
Date Sun, 15 Jul 2001 22:46:08 GMT
>From your previous posts, you're server.xml entry is not correct. You can't
reference multiple IP's, domains, etc.. in the <Host> directive.

My most recent attempt had this in server.xml

<Host name=" : :"
appBase="/home/peds/public_html" unpackWARs="true">
        <Context path="" docBase="/home/peds/public_html" debug="0"/>

If you want to access this as "" and "",
you need to set up two independent <Host> directives. (I'm assuming you're
using TC3.2.2)  Also realize that this will instantiate all of your servlets
twice under two different contexts.

Go to the archives here:

and search on "virtual host jeff". This will pull up all my previous posts
on virtual hosting, including examples of my config.


----- Original Message -----
From: "Chuck Cochems" <>
To: <>
Sent: Sunday, July 15, 2001 2:09 PM
Subject: Okay. this is getting annoying.

> I've posted the snippets from my conf files, and still haven't gotten an
> answer to why i cannot access a virtual host's servlets and JSPs except
> by IP address.  I haven't seen the problem discussed in the archives
> either.  I know this mailing list is pretty busy, but i don't have time
> to wait around forever.
> To sum up. I f I put the virtual hosts IP address in a context, I can
> access JSP via the IP address, whether or not the virtualhost directive
> has the IP address, or the domain name.  If I only put a context for the
> domain name, I cannot access it via IP address OR domain name.  If I put
> contexts for both, in anu order, the IP address works, the domain does
> not.
> My syntax has all been lifted straight form the samples in the docs on
> the site.  What could possibly be wrong?

View raw message