A domain shows “No site is configured for this address on this server.”
A domain that points to the server returns 404 with No site is configured for this address on this server. Apache has no site with that domain or alias, so add the name as an alias or a domain to fix it.
Symptoms
The browser shows No site is configured for this address on this server. with status 404. This often happens with a www. name or a subdomain while the domain itself works.
Cause
Apache serves the request from the site whose name or alias matches the requested name. When no site matches, the server's default host serves the error page.
A domain answers to its www. name only when its www alias is enabled.
Resolution
List the names Apache knows and the default host. On AlmaLinux, run the following command.
httpd -SOn Ubuntu, run this command.
apache2ctl -SThe site names appear on
namevhostandaliaslines. The default host appears asdefault server urbestack.invalid.To make the site answer to its
www.name, enable the domain'swwwalias.urbestack-domain-set --name example.com --www-alias onTo make the site answer to another name, add that name as an alias.
urbestack-domain-alias-add --name example.com --alias shop.example.comIf the subdomain has its own site, add it as a domain with urbestack-domain-add.
Run the listing command for your system again. Check for the requested name on a
namevhostoraliasline.