Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Serving up Static Pages - symlink - allowLinking

Caldarale, Charles R

2007-07-22

Replies:

> From: Ed _ [mailto:ed_b_71@(protected)]
> Subject: Serving up Static Pages - symlink - allowLinking

Your formatting needs a lot of work. Please try to be considerate of
your readers. Many people use at least one space after a period, for
example.

> scenario 1. - http://myhost:myport/appXYZ/docStore

The above should require no special configuration if you _haven't_ done
something like configured a servlet mapping of "/*" in the
WEB-INF/web.xml of appXYZ. If you have done that, you've preempted
Tomcat's DefaultServlet, which is the means of delivering static
content.

> 2. http://myhost:myport/docStore For Scenario 2 - I tried this
> suggestion -
> http://www.mail-archive.com/users@(protected)
> I created docStore.xml as follows <Context
> docBase="/opt/abc/workspace/store" ></Context>and put it
> under $Catalina_Home/webapps/

That was a mistake in the previous e-mail; it should have been placed
in:
  conf/Catalina/[host]
where [host] is usually localhost unless you've changed the <Host>
element in server.xml.

> For the first scenario - I edited my applications
> META-INF/context.html

Is that a typo, or did you mean context.xml?

> <Context path="/store" docBase="/opt/abc/workspace/vvavesStore"

Neither the path nor docBase attributes are allowed in this situation.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.