Using Environment Variables in AEMaaCS | Community
Skip to main content
Rohan_Garg
New Participant
February 8, 2023
Solved

Using Environment Variables in AEMaaCS

  • February 8, 2023
  • 1 reply
  • 2124 views

Hi AEM Community,

 

I have the below code configured in my dispatcher_vhost.conf - 

# Allow ingressroute checks through on /systemready (regardless of dispatcher filters)
<Location "/systemready">
ProxyPass http://${AEM_HOST}:${AEM_PORT}/systemready
RewriteEngine Off
</Location>
# Allow access to CRXDE on dev environment
<IfDefine ENVIRONMENT_DEV>
<LocationMatch "/crx/(de|server)/">
ProxyPassMatch http://${AEM_HOST}:${AEM_PORT}
RewriteEngine Off
</LocationMatch>
</IfDefine>

We have not defined any Environment Variables for AEM_HOST and AEM_PORT as referenced above.

In AEMaaCS the CRXDE access is disabled by default. Hence, the above configuration doesn't make sense to include in dispatcher_vhost.conf.

 

Query 1 - Do we need to configure these parameters  ? I checked the WKND codebase but was unable to find these parameters defined in the /conf.d/variables folder.

 

Query 2 - In AEMaaCS should these parameter be configured ? If yes, then how should these parameters be defined ?

We usually have only Program ID and Environment ID.

 

@arunpatidar@mohit_kbansal@kautuk_sahni@joerghoh, @jagadeesh_prakash@manu_mathew_ 

Thanks in advance.

 

Rohan Garg

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 arunpatidar

I think those are placeholder values. you can replace those with the environment variables from Cloud Manager.

 

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
February 8, 2023

I think those are placeholder values. you can replace those with the environment variables from Cloud Manager.

 

Arun Patidar
Rohan_Garg
New Participant
February 8, 2023

Thanks for the reply @arunpatidar!

But even if we replace them the rules will not work or will they ?

Even if we provide the updated hostname and port for DEV Instance, the CRX will still not be available for AEMaaCS. Isn't that correct ?

arunpatidar
New Participant
February 9, 2023

yes, CRX is not accessible in cloud instance.

Arun Patidar