# How to configure virtual domain and idm redirect relative path

**URL:** <https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373>\
**Category:** Flowable Engine\
**Created:** [February 4, 2020, 11:53pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373 "2020-02-04T23:53:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tky](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tky](https://forum.flowable.org/u/tky)\
**Post date:** [February 4, 2020, 11:53pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373/1 "2020-02-04T23:53:15Z")

</div>

Hi all.

i have 3 domain.like

aaa  
bbb  
ccc

i would like to redirect idm as  
aaa/flowable-idm  
bbb/flowable-id  
ccc/flowable-idm

these mean expect redirect http:/domainname/flowable-idm.

so i just set other war(modeler ,task …)’s properties  
flowable.common.app.idm-url= /flowable-idm

expected result are  
aaa/flowable-idm  
bbbflowable-id  
ccc/flowable-idm

but not working. redirect loop happend  
ca i set relative path to properties?  
Is there a better way?

i would like to know best practice of multi domain configuration

---

<div class="post-metadata">

**Author:** ![DarkStar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/darkstar1/32/394_2.png) [@DarkStar1](https://forum.flowable.org/u/DarkStar1)\
**Post date:** [February 6, 2020, 1:36pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373/2 "2020-02-06T13:36:35Z")

</div>

Do you mean to say you’d like to _load balance_ authentication requests between 3 sub domains?

---

<div class="post-metadata">

**Author:** ![tky](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tky](https://forum.flowable.org/u/tky)\
**Post date:** [February 6, 2020, 1:57pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373/3 "2020-02-06T13:57:54Z")

</div>

thanks for reply

aaa is for customer a  
bbb is for customer b  
ccc is for internal us

i would like to share app level for three domains. aaa , bbb and ccc.  
difference is only client side dns name.  
so i woud like to redirect ‘relative’

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [February 6, 2020, 5:52pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373/4 "2020-02-06T17:52:29Z")

</div>

Hi,

by default the Flowable UI apps work with cookie based authentication.  
The cookies are handed out by the Flowable IDM app. The cookie needs to be ‘in the same domain’. Otherwise the other apps cannot access it after the IDM app creates it.  
When you want to use the default cookie based authentication you have to put something like a reverse proxy in front of it that handles the redirects and possible rewrites.

Regards,

Yvo

---

<div class="post-metadata">

**Author:** ![DarkStar1](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/darkstar1/32/394_2.png) [@DarkStar1](https://forum.flowable.org/u/DarkStar1)\
**Post date:** [February 10, 2020, 2:53pm UTC](https://forum.flowable.org/t/how-to-configure-virtual-domain-and-idm-redirect-relative-path/5373/5 "2020-02-10T14:53:36Z")

</div>

Sounds like you need to look into the multi tenancy aspect of Flowable, otherwise I see no reason why you can’t just proxy all the domains to the same IDM instance.
