9/16/2008

jboss 4.2.x: Setup virtual directory, Setup static directory, Setup external directory

%JOSS_HOME%/server/XXX/deploy/jboss-web.deployer/server.xml

Add the following line under <Host> tag.

<Context path="/images" appBase=""
docBase="C:/dev/workspace/images"
debug="99" reloadable="true">
</Context>

2 comments:

Vladimir Albis said...

Hi, very helpfull thanks a lot. I would like to ask you about restrict access to this virtual directory. This directory contains images that only the application should be allowed to access, and deny access the user that enters the url, please any help is really appreciated. I was thinking on implementing my own valve class.

Regards, Vladimir Albis

Gustavo B. said...

Do you know how to define external directories in JBoss 5.1.

Because you configuration doesn't work on JBoss 5.1

Thanks in advance