Dispatcher Runmode variables | Community
Skip to main content
Level 2
Jan 12, 2023 7:46 AM UTC
Solved

Dispatcher Runmode variables

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.
AlbinIs1Accepted solution
Level 2
Jan 12, 2023 2:26 PM UTC

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
Level 2
Jan 12, 2023 2:26 PM UTC

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

Translate
arunpatidar
New Participant
Jan 12, 2023 8:11 AM UTC

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 

Translate
Arun Patidar