Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Linux/Apache does a subdomain have all the functionality of a normal domain?

For instance, can I have a www address, https address, and can I have email? Eg, and and


Is this possible/practical?


share|improve this question
up vote 1 down vote accepted

It's possible, for example some universities use it to separate the departments (mail). For HTTPS you need a wildcard certificate if you want "trusted" connections.

share|improve this answer
+1 for wildcard certificate recommendation, but only necessary if you want more than 1 subdomain with SSL certificate on same IP address – DKNUCKLES Dec 3 '10 at 17:11

There is actually no meaningful distinction between a hostname which happens to be a second-level domain and a hostname which has more parts than that. You can even have a machine at a top-level domain if you happen to be a small country or otherwise are able to create an A record for one.

So, "yes".

share|improve this answer

It's completely possible, as has been said. For myself, I don't think people make anything like enough use of subdomains; I use subdomains in my personal domain to separate my colo'ed box from my at-home machines, I've delegated another subdomain for a friend who wants a vanity domain but doesn't want to pay for a full registration, I've delegated yet another for attempts with dynamic DNS for friends who have home boxes and want to offer web service but don't want to have to email me when their ADSL IP changes.

Go for it.

share|improve this answer

In Linux/Apache does a subdomain have all the functionality of a normal domain?


For instance, can I have a www address,

'www' is just a convention for a subdomain used to host a website.

https address

Only with a wildcard SSL certificate.

and can I have email?

Yes, but not via Apache (at least not directly). You need to run an SMTP server to receive mail. You then need to provide a way to access the received mail such as IMAP, POP or a webmail server (Apache can help with webmail).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.