Is it possible to alias Glassfish requests like in Apache?
I want to redirect requests to /program.fcgi?
to the actual location on the filesystem which is /usr/local/.../program.fcgi开发者_StackOverflow社区?
. In Apache I can add the following to the configuration file
Alias /program /usr/local/.../program
How do I do the same in Glassfish?
Glassfish lets you include a sun-web.xml
in WEB-INF
of your web application that allows you to provide alternate docroots
An example entry would look like :
<property name="alternatedocroot_1" value="from=*.jsp dir=path_to_directory"/>
Details here
精彩评论