Different applications, different host names, same CQ

Question

Is it possible to configure CQ to serve different applications to different host names?

Sample: Two applications /content/myapp1 and /content/myapp2. For the same publish server IP address exists for two DNS records www.myweb1.com and www.myweb2.com. I want to tell CQ, if user will go to www.myapp1.com, then serve him /content/myapp1. And if any visitor enter www.myweb2.com serve /content/myapp2

Answer, Resolution

This scenario is possible with our Dispatcher Module and ideally running on Apache webserver which provides the mod_rewrite module needed to map domains to individual mandators, such as myweb1 and myweb2 in your case.

In CQ, you don't need to configure anything. First of all, you would configure 2 virtualhosts under apache, www.myweb1.com and www.myweb2.com.

Such a virtualhost entry would look like this:

<VirtualHost *:80>
DocumentRoot <path to docroot>
ServerName www.myweb1.com

RewriteEngine On
RewriteRule ^/(.*)$ /content/myapp1/$1 [PT]
</VirtualHost>

Please refer to our documentation site, docs.day.com, on how to configure the Dispatcher.

 Adobe

更快、更輕鬆地獲得協助

新的使用者?

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上