Expand my Community achievements bar.

SOLVED

Dispatcher and multi domain sites

Avatar

Level 5

I was referring to this guide which explains 2 different approaches to setting up dispatcher for multi domain sites hosted on the same AEM repo:

Using Dispatcher with Multiple Domains

The two approaches in short:

1. Use AEM sling url mappings for rewriting the shortened domain URLs to full repo paths and use 3 different dispatcher farms - two for each of the domains (in case there are two domains) and one farm for invalidating cache.

2. Use webserver rewrites to translate the URLs. This requires just one dispatcher farm.

The document recommends the sling mapping approach. But the 2nd one seems easier and cleaner to me since it requires far less dispatcher configuration.

Any insights as to why the guide linked above promotes the first approach?

1 Accepted Solution

Avatar

Correct answer by
Level 5

nvm, one thing I missed was that sling mappings also cause links in the rendered html markup to be shortened. In the 2nd approach of using web server rewrites, you'd have to do the extra work of writing a custom link transformer to do this job.

I'll mark this as the answer unless someone disagrees.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

nvm, one thing I missed was that sling mappings also cause links in the rendered html markup to be shortened. In the 2nd approach of using web server rewrites, you'd have to do the extra work of writing a custom link transformer to do this job.

I'll mark this as the answer unless someone disagrees.