To resolve the domain name by the dispatcher, you should configure it in the vhosts file. The vhosts file is part of the Apache HTTP server configuration and allows you to define how requests for different domain names are handled. This is crucial for setting up virtual hosts, which is essential for resolving domain names and directing them to the appropriate content served by your AEM instance.
Here are the detailed steps to configure domain name resolution in the vhosts file:
Locate the vhosts file: The file is typically located in the conf directory of your Apache HTTP server installation. Common paths are:
/etc/httpd/conf/httpd.conf (on many Linux systems)
/usr/local/apache2/conf/httpd.conf (if installed from source)
Edit the vhosts file: Open the file with a text editor. You might need superuser permissions to edit this file.
Add a VirtualHost directive: Define a new VirtualHost block for your domain. For example:
ServerName www.example.com
ServerAlias example.com
DocumentRoot "/path/to/your/document/root"
# Dispatcher configuration
SetHandler dispatcher-handler
ModMimeUsePathInfo On
AllowOverride None
Options FollowSymLinks
Require all granted
ServerName specifies the primary domain name.
ServerAlias allows you to specify additional names that should resolve to the same content.
DocumentRoot specifies the directory from which the content should be served.
The section includes the Dispatcher handler configuration.
Restart Apache: After saving the changes to the vhosts file, restart the Apache server to apply the changes.
sudo systemctl restart httpd
# or
sudo service apache2 restart
References:
Adobe Experience Manager Dispatcher Configuration
Apache HTTP Server Documentation on VirtualHost
Submit