Skip to main content

Glassfish 4 map folder as a web context

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
dpmihai
Offline
Joined: 2006-08-04

Hi.

I have a war application deployed in Glassfish 4. It generates some htmls inside a folder "files". I saw this "files" folder is generated under /glassfish/domains/domain1/config

I access my application with url http://localhost:8080/myapplication

I want to map my "files" folder as a web context, to be able to access url like http://localhost:8080/files/MyFile.html

Is there a way to configure this?