Dispatcher Runmode variables | Community
Skip to main content
New Participant
January 12, 2023
Solved

Dispatcher Runmode variables

  • January 12, 2023
  • 2 replies
  • 1092 views

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 ?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AlbinIs1

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

2 replies

AlbinIs1Accepted solution
New Participant
January 12, 2023

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

arunpatidar
New Participant
January 12, 2023

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