How to specify alias for local filesystem in JBOSS

hi,

I want to specify alias for localfilesystem in JBOSS. I know how to do it in Apache_2.0.52-Openssl_0.9.7e-Win32. In this we can specify alias as,

Alias /icons/ "C:/Program Files/Apache_2.0.52-Openssl_0.9.7e-Win32/icons/" in httpd.conf and futher we can specify the directory access also. So I want to do the same thing in JBOSS. How to do it.

Thanks.

[379 byte] By [Appsa] at [2007-10-3 3:53:28]
# 1

JBoss is an app-server, not an HTTP server. The concept of directories is meaningless, as everything is based on contexts. Any of the HTTP server options will be handled by the Tomcat (Catalina) engine that is part of the JBoss installation. You can configure the Tomcat server by editing the jboss-service.xml file in JBOSS_HOME/deploy/tomcat-5.5.sar (or something like that). If you really need to start mapping/rewriting URLs onto your J2EE application, I'd suggest using Apache as the front-end, and connect the Web-tier to Apache via mod_jk. Then you can use all of Apache's URL rewriting and directory aliasing and specify access on a per-location basis. Some of Apache's functionality may be available to the Catalina engine, but there's no sense in trying to make Tomcat as "capable" as Apache, when a means to connect the two already exists.

Brian

brian@cubik.caa at 2007-7-14 21:51:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

hi,

Thanks for reply. As per the reply adding a <context path="" docbase=""> entry in the server.xml(JBOSS 4.x which uses Tomcat 5.x) is the solution for above problem. But jbossweb-tomcat50.sar is the tomcat service provided by JBOSS. So is is the right way to do this. Or there could be a other solution to achive the same thing by configuring one of the file ie is reside in <JBOSS_HOME>/server/<config-name>/conf directory.

Thanks.

Appsa at 2007-7-14 21:51:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...