How to set up subdomains on Apache HTTP Server?

How to set up subdomains on Apache HTTP Server?

How to set up subdomains on the Apache HTTP server . A subdomain is a precursor that can be placed on a domain name. For instance, in “mail.yoursite.com” the word “mail” is the subdomain of the “yoursite.com” domain name.

How does the configuration of a sub domain work?

Sub-domain configuration starts with an entry in the DNS server of the parent domain and the lookup resolves the sub-domain to an IP address of the web server. The web server in turn delegates the requests based on its configuration for the sub-domain.

How to set up three Apache domain names?

Let’s walk through the steps to set up our three domain names on an Ubuntu Apache web server. Before we start, open a browser and go to the domain names you’ll be working with. Verify the domain names are showing the correct server page. If you’ve freshly installed Apache on your server, you should see a page that says something like “It works!”

How does a subdomain work on a website?

Once the DNS record for the subdomain is resolved to a particular IP address, the request is sent to the web server listening on that IP address. The web server can now delegate the request to the particular website based on the subdomain name in the host header of the request object.

How is Apache used to host multiple domains?

Using Apache, an administrator can set up one server to host multiple domains or sites off of a single interface or IP by using a matching system. Each domain or individual site — known as a “virtual host” — that is configured using Apache will direct the visitor to a specific directory holding that site’s information.

Which is a subdomain of Your Domain Name?

A subdomain is a precursor that can be placed on a domain name. For instance, in “mail.yoursite.com” the word “mail” is the subdomain of the “yoursite.com” domain name. For this walk-through on how I set up my own subdomains, I’m running my own Linux box, with Apache version 2.2.17,. And for purposes of this demonstration,…

What does the @ mean in DNS zone file?

The “@” is shorthand for the IP address of the domain name, which was defined in the Host (or “A”) table in the DNS Zone File. And that’s it, basically. Except for a bit of waiting. It usually takes about an hour for the changes to the Zone File to propagate across the Net.