Is it possible to make Authoring cloud instance using dispatcher (creating new virtual host for Authoring instance) ?
Solved! Go to Solution.
Views
Replies
Total Likes
Got confirmation from Adobe that Dispatcher on Authoring is not supported
Hi @nbg62
Yes, it is possible to create a new virtual host for the Authoring instance using the dispatcher. This can be achieved by configuring the dispatcher to route requests to the new virtual host to the Authoring instance.
# Define a new virtual host
<VirtualHost *:80>
ServerName authoring.example.com
DocumentRoot /var/www/authoring
# Configure the dispatcher to route requests to the Authoring instance
<Location /content>
DispatcherPass ajp://authoring_instance:8009
</Location>
</VirtualHost>
In this example, the dispatcher is configured to route requests to the `/content` path to the Authoring instance running on `authoring_instance:8009`. Requests to `authoring.example.com/content` will be routed to the Authoring instance, while requests to other paths will be served by the `DocumentRoot` specified in the virtual host configuration.
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-d...
https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/dispatcher.html?lang=en
Thanks, let me give it a try
hi @nbg62
Yes, it is possible to configure a dispatcher virtual host (vhost) for the authoring environment in Adobe Experience Manager as a Cloud Service (AEMaaCS). The dispatcher can be configured to route requests to the appropriate AEM environment based on the hostname or other request characteristics.
Configuring a dispatcher vhost for the authoring environment typically involves setting up a separate dispatcher configuration for authoring, which directs requests to the author instance(s) rather than the publish instances. This allows authors to access the authoring environment through a specific hostname or URL.
here's a sample
<VirtualHost *:80>
ServerName author.example.com
ServerAlias author
# Basic dispatcher configuration
DocumentRoot "/path/to/dispatcher/docroot"
<Directory "/path/to/dispatcher/docroot">
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# Dispatcher module configuration
<IfModule dispatcher_module>
# Enable dispatcher module
LoadModule dispatcher_module /path/to/dispatcher/modules/mod_dispatcher.so
# Dispatcher configuration file
DispatcherConfigFile "/path/to/dispatcher/conf/dispatcher.any"
# Author instance(s) configuration
DispatcherDeclineRoot "/content"
DispatcherPassError 0
# Authoring environment rules
# Rewrite rules to direct requests to the author instance(s)
# Example:
# RewriteCond %{REQUEST_URI} !^/content/author.*
# RewriteRule ^/(.*)$ http://author-publisher.example.com/$1 [P,L]
# Other configuration directives specific to your setup may be added here
</IfModule>
</VirtualHost>
especially in AEMaaCS, all authoring URLs are passed through a CDN and thus quite possible to capture the requests to redirect to authoring hosts.
Hi,
The counter question would be why?
Technically, yes, it is possible, as it was already pointed out. However, I believe that not having a Dispatcher for the author instance is a decision made by design. You can learn more about why it would not be necessary to have a Dispatcher at the author level here: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/overview/architectu.... Additionally, I am not sure if this is doable from a lockdown perspective. I am uncertain if the files you will try to modify are considered "unmodifiable."
I would be curious about the result of your exercise trying to add the Dispatcher.
Hope this helps.
I'm not even sure that is technically possible, I would like to see any documentation or AEM architecture graphics showing that request to Authoring is going to dispatcher before it is fwd to Authoring.
In the logs section you can see Publish dispatcher log but you can't see Authoring dispatcher log, that makes me think there is no dispatcher support for Authoring
Hi @nbg62
Please check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/can-we-enable-dispatcher-c...
Not sure if Dispatcher is behind author or not on cloud.
technically you can create farm for author as well.
Got confirmation from Adobe that Dispatcher on Authoring is not supported