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 ?
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
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