tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <>
Subject AW: CrossContext. Is there a easier solution?
Date Thu, 06 Jun 2002 13:00:03 GMT
There are serveral options:

- Define a context with the name images and use something 
  like /images/common/img1.gif to reference them from the 
  other contexts.

- The dirty solution for linux:

  mkdir -p /webcommon/images

  ln -s /webcommon/images /webapp1/images
  ln -s /webcommon/images /webapp2/images
  ln -s /webcommon/images /webapp<n>/images

The first options make sense if you use tomcat stand 
alone, or want to use tomcats authorisation to access the 
images. Normally you wouldn't want to serve images from 
tomcat if you run behind a 'real' webserver.)

- If you run tomcat behind a webserver
  you can solve that by using the same document root
  for all web applications.

> -----Urspr√ľngliche Nachricht-----
> Von: Christian J. Dechery []
> Gesendet: Donnerstag, 6. Juni 2002 14:19
> An:
> Betreff: CrossContext. Is there a easier solution?
> For instance, if I have a webserver and I want all the 
> webapps to look in only one dir for images... how would I do that?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message