Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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,

http://www.mysubdomain.mydomain.com and
https://www.mysubdomain.mydomain.com

http://mysubdomain.mydomain.com and
https://mysubdomain.mydomain.com

and,

mail@mysubdomain.mydomain.com

Is this possible/practical?

Thanks,

share|improve this question
add comment

4 Answers

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
add comment

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
add comment

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
add comment

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

Yes.

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
add comment

Your Answer

 
discard

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.