*Only for on-prem installations. Do not use with AEMaaCS.
- Update Magento configuration
- Open
conf/magento-proxy.conf
. - Update the
magento_host
variable to point to your Magento instance.
- Open
- Update AEM configuration
- Open
conf/dispatcher.any
. - Scroll to the
/farms/publish/renders/rend01
area. - Update hostname and port values to point to your AEM instance.
- Open
- Build Docker Image
docker build -t aem-dispatcher .
- Run Docker Image
docker run -it -p 80:80 aem-dispatcher:latest
The default configuration of the dispatcher is valid for the publish instance, where certain paths are blocked (i.e. /libs
or /conf
). During development, it's useful to access AEM via dispatcher to detect some early misses in the code.
To access the author via the dispatcher, the following configuration options must be updated:
- Open
conf/dispatcher.any
- Scroll to the
/filter
section - Uncomment the line which will allow access to the login page (and other URLs under
/libs
) via the dispatcher
/0024 { /type "allow" /url "/libs/*" }
- Update Magento configuration
- Open
conf/magento-proxy.conf
. - Update the
magento_host
variable to point to your Magento instance.
- Open
- Include the
conf/magento-proxy.conf
file in your Apache configuration. For example, inhttpd.conf
add:Include conf/magento-proxy.conf
The dispatcher is configured to proxy Magento's GraphQL endpoint.
In the dispatcher the endpoint is mapped as following:
Request | Proxy to |
---|---|
{APACHE}/magento/graphql |
{MAGENTO}/graphql |