Expand my Community achievements bar.

SOLVED

AEMaaCS + dispatcher config: How important is available_host?

Avatar

Level 9

I've worked in an AMS setup in the past and at the time we only created a symlink in enabled_hosts to files in available_hosts.

 

what's the better idea?

 

option 1: create the same file (with same contents) in both available_hosts and enabled_host

option 2: create the file only in enabled_host

 

Thanks!

 

PS. I'm on windows so I cannot create  a symlink.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @jayv25585659,

 

You can create symlinks on windows - 

Syntax — mklink <link> <target>

Reference Link - Validating Dispatcher Files

Rohan_Garg_0-1720596398989.png

 

Hope this helps!

Rohan Garg

View solution in original post

3 Replies

Avatar

Community Advisor

@jayv25585659 

 

AEM cloud now supports USE_SOURCES_DIRECTLY

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/con... 

 

With the option enabled, we need not use symlinks. But, can check-in files in enabled_vhost.

Please verify once. 


Aanchal Sikka

Avatar

Correct answer by
Community Advisor

Hi @jayv25585659,

 

You can create symlinks on windows - 

Syntax — mklink <link> <target>

Reference Link - Validating Dispatcher Files

Rohan_Garg_0-1720596398989.png

 

Hope this helps!

Rohan Garg

Avatar

Community Advisor

Configuring available_host enhances security by explicitly defining acceptable hosts. This prevents unauthorized access and ensures only requests from trusted sources are processed. By restricting the hosts that can serve content, you can mitigate potential security risks and ensure that only trusted sources have access to your AEM environment.

You can totally add Symbolic Links in your codebase, just install gitbash, https://git-scm.com/downloads. It will be your Linux based command line. Next you'd want to setup the symbolic links https://www.youtube.com/watch?v=_8HyqxxN4dA&ab_channel=LarrySmith


Once you are done with the links, you can check in the code.