Expand my Community achievements bar.

SOLVED

Dispatcher Runmode variables

Avatar

Level 2

We've certain domains which are environment specific. So now i wanted to create environment specific .vars files and include it in the vhost and use those variables in the proxy rules.

 

Eg: varfile names - dev.vars,int.vars,stg.vars,prod.vars

I want to include the var file in below format in the vhost file.

include ..variables/{runmode}.vars 

 

Is there any possibility in AMS to set dev,int,stg&prod as runmodes or do we have any predefined set of runmodes ?

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can add the environment-specific variables into /etc/sysconfig/httpd file; if the AEM is hosted on AMS, work with the Customer Success Engineer to enable the additional required variables(the default variables are already enabled e.g ENV_TYPE variable already defined).

Refer to Using and understanding variables in your AEM Dispatcher Configuration | Adobe Experience Manager for more details.

Regards

Albin

https://www.albinsblog.com

View solution in original post

2 Replies

Avatar

Community Advisor

Hi,

Yes, this is possible.

 

We also did the same. You need to setup some variable say MY_ENV_TYPE and use that in dispatcher file.

 

Check with your CSE, there are other variables also set by them 



Arun Patidar

Avatar

Correct answer by
Community Advisor

You can add the environment-specific variables into /etc/sysconfig/httpd file; if the AEM is hosted on AMS, work with the Customer Success Engineer to enable the additional required variables(the default variables are already enabled e.g ENV_TYPE variable already defined).

Refer to Using and understanding variables in your AEM Dispatcher Configuration | Adobe Experience Manager for more details.

Regards

Albin

https://www.albinsblog.com