-
1. Re: Url mapping with a directory on server storage
jaysensharma Oct 23, 2015 8:41 AM (in response to pankhurie)Hello Pankhurie,
WildFly provides "undertow" subsystem where a new feature is introduced as URL handlers which can provide you the feature which you are requesting. However in JBossAS7 i do not see such configuration out of the box.
JBossAS7 is too old, better to try with latest WildFly, which has lot more new features.
Please see : How to store static contents outside WildFly installation and access them via Http ?
http://middlewaremagic.com/jboss/?p=2718
Regards
Jay SenSharma
-
2. Re: Url mapping with a directory on server storage
jaysensharma Oct 23, 2015 11:37 AM (in response to pankhurie)In JBossAS7 you may try the following approach:
Create your images directory inside the "$JBOSS_HOME/welcome-content" and place your images there.
Example:
$ cd $JBOSS_HOME/welcome-content $ mkdir -p Beta/images
Now place your images there like "$JBOSS_HOME/welcome-content/Beta/images/abc.jpg" and then you should be access the images as following: