Skip to main content

Glassfish 4 map folder as a web context

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2006-08-04


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?