Ask Your Question

Revision history [back]

There are few requirements:

  1. You need FQDN (fully qualified domain name)
  2. You need that domain pointed to some DNS servers (many registrars provide their own DNS servers to use for free).
  3. You need to point wanted domains/sub-domains to your server IP address (by setting up A type record on DNS)

Once that is done you need to configure your Apache to have VirtualHosts. There are two kinds of Virtual Hosts:

  1. Name based virtual hosts
  2. IP based virtual hosts

You're using Name based virtual hosts and I see you've configured that good, although, general recommendation would be to have VirtualHost specified on only one IP address.

After you register domain and make modifications to zone records keep in mind that it may take some time to propagate those changes, depending on DNS server TTL (time-to-live).