tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angelov, Rossen" <>
Subject RE: Problem with relative links when migrating a site to Tomcat
Date Tue, 13 May 2003 18:30:01 GMT

Setting docBase to "" will create a lot of "Page not Found".

Here is the file system structure I use:

And we are planning on running more then one sites, so there will be few
different docBase directories in webapps.

-----Original Message-----
From: Shapira, Yoav []
Sent: Tuesday, May 13, 2003 12:14 PM
To: Tomcat Users List
Subject: RE: Problem with relative links when migrating a site to Tomcat


>links. All images and other links are related to the root directory on
>current site. Like: "/images/image.gif". So, it's looking for the

Another word for "related to the root directory" is "absolute" ;)  Your
links are not relative, they're absolute, in fact.

>directory in the root for Tomcat while I need it to check in the
>corresponding docBase directory in the context.
>Is there a way I can reconfigure this context in Tomcat or the only
>will be removing the front "/" everywhere in the html files?

You can configure this context to have a docBase of "" in server.xml.

Yoav Shapira

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message