This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hi There,
We are trying to create virtualhost for our multiwebsite. We are following this link https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-d... We have created different virtualhost for both website.
In vhost file what is DocumentRoot "${DOCROOT}" and value of this variable for different domain?
Solved! Go to Solution.
Views
Replies
Total Likes
The simplified approach is(this is followed as part of the latest AMS/AEMasaCloud Dispatcher configurations)
RewriteCond %{REQUEST_URI} !^/apps/(.*) [NC]
RewriteCond %{REQUEST_URI} !^/etc(.*) [NC]
RewriteCond %{REQUEST_URI} !^/libs(.*) [NC]
RewriteCond %{REQUEST_URI} !^/content(.*) [NC]
RewriteCond %{REQUEST_URI} !^/system(.*) [NC]
RewriteCond %{REQUEST_URI} !^/dam(.*) [NC]
RewriteRule ^/(.*) /content/test/$1 [PT]
Regards
Albin
HI @lavishvasuja ,
The /docroot property identifies the directory where cached files are stored.The value must be the exact same path as the document root of the web server so that Dispatcher and the web server handle the same files.The web server is responsible for delivering the correct status code when the dispatcher cache file is used, that’s why it is important that it can find it as well.
If you use multiple farms, each farm must use a different document root.
Hope it helps!
Thanks
Tarun
The simplified approach is(this is followed as part of the latest AMS/AEMasaCloud Dispatcher configurations)
RewriteCond %{REQUEST_URI} !^/apps/(.*) [NC]
RewriteCond %{REQUEST_URI} !^/etc(.*) [NC]
RewriteCond %{REQUEST_URI} !^/libs(.*) [NC]
RewriteCond %{REQUEST_URI} !^/content(.*) [NC]
RewriteCond %{REQUEST_URI} !^/system(.*) [NC]
RewriteCond %{REQUEST_URI} !^/dam(.*) [NC]
RewriteRule ^/(.*) /content/test/$1 [PT]
Regards
Albin
Views
Likes
Replies
Views
Likes
Replies