Get your free beta license ↗
Websites · Apache

A domain shows “No site is configured for this address on this server.”

Last updated 30 Nov 2026
Summary

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

  1. List the names Apache knows and the default host. On AlmaLinux, run the following command.

    httpd -S
  2. On Ubuntu, run this command.

    apache2ctl -S
  3. The site names appear on namevhost and alias lines. The default host appears as default server urbestack.invalid.

  4. To make the site answer to its www. name, enable the domain's www alias.

    urbestack-domain-set --name example.com --www-alias on
  5. To make the site answer to another name, add that name as an alias.

    urbestack-domain-alias-add --name example.com --alias shop.example.com
  6. If the subdomain has its own site, add it as a domain with urbestack-domain-add.

  7. Run the listing command for your system again. Check for the requested name on a namevhost or alias line.