• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

Quick subdomain question

I have two really quick and (hopefully) easy questions relating to subdomains in apache2 / ubuntu.

First, can I have two virtualhosts listen on the same port if one is for a subdomain and one is for the main domain?

Second, how do I configure a subdomain in the DNS control panel for godaddy?
I added this record to my CNAME section
*host*          *points to*                      *ttl*
sub	          sub.example.com	              1hr

Open in new window

Is that correct?

Curtis Long
Curtis Long
1 Solution
Khandakar Ashfaqur RahmanExpert/ConsultantCommented:
Check the following link:

And for creating a subdomain you need to add A record:
www IN A

Additionally, you can create alias/CNAME but without CNAME it's also ok.
web IN CNAME www.domain.com.
Curtis LongAuthor Commented:
Thanks! As soon as I created the A record everything started working :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now