开发者

Is it possible to alias Glassfish requests like in Apache?

开发者 https://www.devze.com 2023-04-03 03:06 出处:网络
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 configurat

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号