>Hi all,
>
>I have a functional, running application which I am trying to get running
with virtual hosting. When I put <Host name="test"> in the configuration
file, I still see the >servlet return html to my browser but loose my
images.
>
>I am getting the same result on both 3.2.2 and 4.0. There must be a simple
thing I am missingand have tried everything I can find, but right now I have
no idea >what to do!
>
>Thanks for any help;
>
>Mark
Some further information to try and pin point the problem...
In my applications web.xml, if I set up a url-pattern other than /, I can
see the gifs!!!
The problem is that I don't want to specify a path ie: "www.myapp.com/a". I
only want the user to type in "www.myapp.com".
following is the web.xml file for my application:
<web-app>
<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>myservlet.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
Following is the host portion of server.xml:
<Host name="localhost">
<Context path="/"
docbase="webapps/myservlet"
crossContext-"false"
debug="9"
reloadable="true">
</Context>
</Host>
The above combination does not work but if I specify a url-pattern in the
web.xml file then it does work.
Any and all help I can get here will be very appreciated!
Thanks;
Mark
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>