glassfish - Java EE, differentiate context by path -


i'm working on workaround problem, glassfish not support individual certificates virtual hosts.

my application supposed running context dependent based on customer wants access data. wanted use seprarate domains that, since not possible, i've come different idea:

i want differentiate customers path entering. example: www.application.com/customer1/pages/page.jsf or www.application.com/customer2/pages/page.jsf

but dont know how implement that. far know, these adresses indicate paths on webserver. can somehow this, application still finding pages?

preferebly want store these entries (customer1 , customer2) in external file can add new entry without having touch code.

i'm assuming mean ssl certificates. consider setting reverse proxy handles multiple domains , ssl encryption , forwards requests normal http on glassfish.

in application distinction customers can made via login use (roles/groups, ...). if using path or domain distinguish it's quite easy access secured resources different customers. if want have domain information can add header in proxy server incoming http request.

as candidates such proxy can recommend nginx easy set up. can use apache or many others doing so.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -