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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @jayv25585659,
You can create symlinks on windows -
Syntax — mklink <link> <target>
Reference Link - Validating Dispatcher Files
Hope this helps!
Rohan Garg
AEM cloud now supports USE_SOURCES_DIRECTLY
With the option enabled, we need not use symlinks. But, can check-in files in enabled_vhost.
Please verify once.
Hi @jayv25585659,
You can create symlinks on windows -
Syntax — mklink <link> <target>
Reference Link - Validating Dispatcher Files
Hope this helps!
Rohan Garg
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.