Hi Mark,

An earlier e-mail mentioned using Tomcat 3.2.2 standalone.  I believe
for Tomcat 3.x, the standalone HTTP service doesn't currently support
virtual hosts.  Requests on the HTTP port (8080 by default) always go
to the default host. Virtual hosts are useful when connecting to an
external web server, primarily Apache.

I haven't tried it, but from I can glean from the server.xml, Tomcat 4.x
does support virtual hosts in stand-alone.

Cheers,
Larry


> -----Original Message-----
> From: Mark Biciunas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 6:41 PM
> To: Tomcat Users List
> Subject: static gifs and tomcat
> 
> 
> What happens when virtual hosting is set up in server.xml - 
> using <host
> name="foo">?  The reason I am asking is that I am loosing all 
> access to
> static data in my application (primarily gifs).  The path 
> defined in the
> context is "/" and the url-pattern in the web.xml file is also /.
> 
> If I change the url-pattern to anything (ie: /foo), then the 
> application
> finds the gifs but now the url to access the application becomes
> www.myapp.com/foo.  (this is no good).  Of course, if I 
> remove the <Host...
> component from the server.xml file, then everything works 
> fine (but now I
> have lost virtual hosting).
> 
> When I look at what is happening on the server, I see that 
> when no path is
> specified, the doGet method is receiving and trying to deal 
> with requests
> for the gifs.  If I use /foo, then no requests for gifs come into the
> servlet and everything works.
> 
> It looks like the virtual hosting is messing up my ability to 
> find files.
> Don't know why this is and I have not been able to find a way 
> to solve the
> problem.  Any ideas, thoughts or even words of encouragement would be
> greatly appreciated.
> 
> Thanks;
> 
> Mark
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to